Class TypeExtensions
TypeExtensions.
Inheritance
Namespace: Telerik.Windows.Controls.Data
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
public static class TypeExtensions : Object
Methods
ToItemProperties(Type)
Converts the type to a collection of ItemPropertyInfo objects.
Declaration
public static IEnumerable<ItemPropertyInfo> ToItemProperties(this Type source)
Parameters
System.Type
source
The type. |
Returns
System.Collections.Generic.IEnumerable<ItemPropertyInfo>
|
ToItemPropertyDefinitions(Type)
Converts the type to a collection of ItemPropertyDefinition objects.
Declaration
public static IEnumerable<ItemPropertyDefinition> ToItemPropertyDefinitions(this Type source)
Parameters
System.Type
source
The type. |
Returns
System.Collections.Generic.IEnumerable<ItemPropertyDefinition>
|
ToOrderedAutoGenerateFilterItemPropertyDefinitions(Type)
Takes a type, gets its ItemProperties, filters out the ones that should not be auto-generated, orders them according to their Order attribute (SL only), creates an ItemPropertyDefinition for each one and returns the resulting collection.
Declaration
public static IList<ItemPropertyDefinition> ToOrderedAutoGenerateFilterItemPropertyDefinitions(this Type source)
Parameters
System.Type
source
The source. |
Returns
System.Collections.Generic.IList<ItemPropertyDefinition>
|