Class ReflectionPropertyDescriptor
Definition
Namespace: StardewUI.Framework.Descriptors
Assembly: StardewUI.dll
Helper for creating ReflectionPropertyDescriptor<T, TValue> with types not known at compile time.
Inheritance
Object ⇦ ReflectionPropertyDescriptor
Members
Methods
Name | Description |
---|---|
FromPropertyInfo(PropertyInfo) | Creates a binding property from reflected property. |
Details
Methods
FromPropertyInfo(PropertyInfo)
Creates a binding property from reflected property.
public static StardewUI.Framework.Descriptors.IPropertyDescriptor FromPropertyInfo(System.Reflection.PropertyInfo propertyInfo);
Parameters
propertyInfo
PropertyInfo
The reflected property info.
Returns
A binding property of type ReflectionPropertyDescriptor<T, TValue>, whose generic arguments are the property's DeclaringType and PropertyType, respectively.