public void ReadObjectRoot(object obj)
 {
     root = obj;
     RootNodeFieldReference fieldReference = new RootNodeFieldReference(root);
     rootNode = factory.CreateRoot(fieldReference, root, GetTypeName(root.GetType()));
     fieldReference.ParentNode = rootNode;
     BuildNodeState(rootNode, factory);
 }
 public ISchemaEditorNode CreateRoot(RootNodeFieldReference reference, object rootObj, string name)
 {
     return CreateNode(reference,rootObj, name);
 }