System.ComponentModel.CustomTypeDescriptor.GetProperties C# (CSharp) Method

GetProperties() public method

public GetProperties ( ) : PropertyDescriptorCollection
return PropertyDescriptorCollection
        public virtual PropertyDescriptorCollection GetProperties()
        {
            if (_parent != null)
            {
                return _parent.GetProperties();
            }

            return PropertyDescriptorCollection.Empty;
        }

Same methods

CustomTypeDescriptor::GetProperties ( Attribute attributes ) : PropertyDescriptorCollection

Usage Example

 public void GetPropertyOwnerShouldReturnExpectedValue()
 {
     var parent = TypeDescriptor.GetProvider( typeof( string ) ).GetTypeDescriptor( typeof( string ) );
     var target = new CustomTypeDescriptor<string>( parent );
     var property = target.GetProperties().Cast<PropertyDescriptor>().First();
     var owner = target.GetPropertyOwner( property );
     Assert.Equal( target, owner );
 }
All Usage Examples Of System.ComponentModel.CustomTypeDescriptor::GetProperties