コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }