System.ComponentModel.TypeDescriptor.GetDefaultProperty C# (CSharp) Method

GetDefaultProperty() public static method

Gets the default property for the specified component.
public static GetDefaultProperty ( object component ) : PropertyDescriptor
component object
return PropertyDescriptor
        public static PropertyDescriptor GetDefaultProperty(object component)
        {
            return GetDefaultProperty(component, false);
        }

Same methods

TypeDescriptor::GetDefaultProperty ( Type componentType ) : PropertyDescriptor
TypeDescriptor::GetDefaultProperty ( object component, bool noCustomTypeDesc ) : PropertyDescriptor

Usage Example

Example #1
0
 public PropertyDescriptor GetDefaultProperty() => NativeTypeDesc.GetDefaultProperty(_entityType, true);