private void InitPropertyCollection() { List <PropertyDescriptor> propertyDescriptors = new List <PropertyDescriptor>(); if (_jsonObject != null) { foreach (JsonObject field in _jsonObject.Fields) { PropertyDescriptor pd = new JsonTreeObjectPropertyDescriptor(field); propertyDescriptors.Add(pd); } } _propertyCollection = new PropertyDescriptorCollection(propertyDescriptors.ToArray()); }
private void InitPropertyCollection() { List<PropertyDescriptor> propertyDescriptors = new List<PropertyDescriptor>(); if (_jsonObject != null) { foreach (JsonObject field in _jsonObject.Fields) { PropertyDescriptor pd = new JsonTreeObjectPropertyDescriptor(field); propertyDescriptors.Add(pd); } } _propertyCollection = new PropertyDescriptorCollection(propertyDescriptors.ToArray()); }