Skip to content

Class ReflectionPropertyDescriptor

Definition

Namespace: StardewUI.Framework.Descriptors
Assembly: StardewUI.dll

Helper for creating ReflectionPropertyDescriptor<T, TValue> with types not known at compile time.

public static class ReflectionPropertyDescriptor

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

IPropertyDescriptor

A binding property of type ReflectionPropertyDescriptor<T, TValue>, whose generic arguments are the property's DeclaringType and PropertyType, respectively.