Class TypedListResourceIdMapper<T>
Provides a generic resource identifier mapper that works with strongly-typed collections and includes resource lookup functionality.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Scheduler
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class TypedListResourceIdMapper<T> : ComplexResourceIdMapper
Type Parameters
T
The type of objects in the resource collection. |
Constructors
TypedListResourceIdMapper(ConstructorInfo, PropertyDescriptor, SchedulerBindingDataSource)
Initializes a new instance of the TypedListResourceIdMapper<T> class with the specified constructor, property descriptor, and owner data source.
Declaration
public TypedListResourceIdMapper(ConstructorInfo constructorInfo, PropertyDescriptor resourceIdDescriptor, SchedulerBindingDataSource ownerDataSource)
Parameters
System.Reflection.ConstructorInfo
constructorInfo
The System.Reflection.ConstructorInfo used to create new resource objects. |
System.ComponentModel.PropertyDescriptor
resourceIdDescriptor
The System.ComponentModel.PropertyDescriptor that describes the resource ID property on the complex objects. |
SchedulerBindingDataSource
ownerDataSource
The SchedulerBindingDataSource that owns this mapper and provides access to resource data. |
Methods
AddResourceIdCore(Object)
Adds the created resource ID object to the strongly-typed collection, attempting to find an existing matching resource first.
Declaration
protected override void AddResourceIdCore(object resourceIdObject)
Parameters
System.Object
resourceIdObject
The resource ID object to add to the collection. |
Overrides
ClearResourceIds()
CreateResourceIdCore()
Creates a new resource ID object using the provided constructor information.
Declaration
protected override object CreateResourceIdCore()
Returns
System.Object
A new resource ID object instance, or null if the constructor is not available. |
Overrides
SetResourceList(Object)
Sets the resource list and initializes the strongly-typed collection interface for managing resource objects.
Declaration
public override void SetResourceList(object resourceList)
Parameters
System.Object
resourceList
The resource list to be managed by this mapper. |