CreateProperty() public static method

public static CreateProperty ( FieldInfo field ) : System.ComponentModel.PropertyDescriptor
field System.Reflection.FieldInfo
return System.ComponentModel.PropertyDescriptor
Beispiel #1
0
 public static PropertyDescriptor GetReadOnlyPropertyProperty()
 {
     return(CustomTypeDescriptor.CreateProperty(typeof(Thing).GetProperty("ReadOnlyProperty")));
 }
Beispiel #2
0
 public static PropertyDescriptor GetProperty1Property()
 {
     return(CustomTypeDescriptor.CreateProperty(typeof(Thing).GetProperty("Property1")));
 }