Jayrock.Json.Conversion.CustomTypeDescriptor.GetProperties C# (CSharp) Method

GetProperties() public method

public GetProperties ( ) : System.ComponentModel.PropertyDescriptorCollection
return System.ComponentModel.PropertyDescriptorCollection
        public PropertyDescriptorCollection GetProperties()
        {
            return _properties;
        }

Same methods

CustomTypeDescriptor::GetProperties ( Attribute attributes ) : System.ComponentModel.PropertyDescriptorCollection

Usage Example

 public void MembersWithIgnoreAttributeExcluded()
 {
     CustomTypeDescriptor thingType = new CustomTypeDescriptor(typeof(Thing));
     Assert.AreEqual(4, thingType.GetProperties().Count);
     Assert.IsNull(thingType.GetProperties().Find("Field2", true));
     Assert.IsNull(thingType.GetProperties().Find("Property2", true));
 }
All Usage Examples Of Jayrock.Json.Conversion.CustomTypeDescriptor::GetProperties