code: def add_object(self, obj):
          
          if obj.top_level_object:
              if isinstance(obj, DotNetNamespace):
                  self.namespaces[obj.name] = obj
          self.objects[obj.id] = obj
docs: Add object to local and app environment storage
  
          :param obj: Instance of a .NET object