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

GetDefaultProperty() private method

private GetDefaultProperty ( object component, bool noCustomTypeDesc ) : PropertyDescriptor
component object
noCustomTypeDesc bool
return PropertyDescriptor
        public static PropertyDescriptor GetDefaultProperty(object component, bool noCustomTypeDesc)
        {
            if (component == null)
            {
                Debug.Fail("COMPAT:  Returning null, but you should not pass null here");
                return null;
            }

            return GetDescriptor(component, noCustomTypeDesc).GetDefaultProperty();
        }

Same methods

TypeDescriptor::GetDefaultProperty ( Type componentType ) : PropertyDescriptor
TypeDescriptor::GetDefaultProperty ( object component ) : PropertyDescriptor

Usage Example

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