New to Telerik UI for WinFormsStart a free 30-day trial

Provides a resource identifier mapper that works with IList collections and uses constructor information to create new resource objects.

Definition

Constructors

Initializes a new instance of the ListResourceIdMapper class with the specified constructor and resource ID property descriptor.

C#
public ListResourceIdMapper(ConstructorInfo constructorInfo, PropertyDescriptor resourceIdDescriptor)
Parameters:constructorInfoConstructorInfo

The ConstructorInfo used to create new resource objects.

resourceIdDescriptorPropertyDescriptor

The PropertyDescriptor that describes the resource ID property on the complex objects.

Methods

Adds the created resource ID object to the underlying list.

C#
protected override void AddResourceIdCore(object resourceIdObject)
Parameters:resourceIdObjectobject

The resource ID object to add to the list.

Overrides: ComplexResourceIdMapper.AddResourceIdCore(object)

Removes all resource identifiers from the underlying list.

C#
public override void ClearResourceIds()

Overrides: ResourceIdMapper.ClearResourceIds()

Creates a new resource ID object using the provided constructor information.

C#
protected override object CreateResourceIdCore()
Returns:

object

A new resource ID object instance, or null if the constructor is not available.

Overrides: ComplexResourceIdMapper.CreateResourceIdCore()

Sets the resource list and initializes the list interface for managing resource objects.

C#
public override void SetResourceList(object resourceList)
Parameters:resourceListobject

The resource list to be managed by this mapper.

Overrides: ComplexResourceIdMapperBase.SetResourceList(object)