Class CustomTypeDescriptorExtensions
CustomTypeDescriptor extensions.
Inheritance
Namespace: Telerik.Windows.Data.Expressions
Assembly: Telerik.Windows.Data.dll
Syntax
public static class CustomTypeDescriptorExtensions : Object
Methods
Property<T>(ICustomTypeDescriptor, String)
Gets the value of a property on the given custom type descriptor.
Declaration
public static T Property<T>(this ICustomTypeDescriptor typeDescriptor, string propertyName)
Parameters
System.ComponentModel.ICustomTypeDescriptor
typeDescriptor
The type descriptor, which property will be accessed. |
System.String
propertyName
Name of the property. |
Returns
T
The value of the given property for the given custom type descriptor. |
Type Parameters
T
|
Property<T>(Object, String)
Gets the value of a property on the given component via call to TypeDescriptor.GetProperties.
Declaration
public static T Property<T>(object component, string propertyName)
Parameters
System.Object
component
The component, which property will be accessed. |
System.String
propertyName
Name of the property. |
Returns
T
The value of the given property for the given component. |
Type Parameters
T
|