Пример #1
0
        public static ObjectDescriptor FromJson(string json, ObjectDescriptor parent)
        {
            ObjectDescriptor descriptor = DescriptorSerializer.FromJson(json);

            parent.Children.Add(descriptor);
            descriptor.Parent = parent;
            return(descriptor);
        }
Пример #2
0
 public static ObjectDescriptor FromJson(string json)
 {
     return(DescriptorSerializer.FromJson(json));
 }