Class
ListResourceIdMapper

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

Definition

Constructors

ListResourceIdMapper(ConstructorInfo, PropertyDescriptor)

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

Declaration

cs-api-definition
public ListResourceIdMapper(ConstructorInfo constructorInfo, PropertyDescriptor resourceIdDescriptor)

Parameters

constructorInfo

ConstructorInfo

The ConstructorInfo used to create new resource objects.

resourceIdDescriptor

PropertyDescriptor

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

Methods

AddResourceIdCore(object)

Adds the created resource ID object to the underlying list.

Declaration

cs-api-definition
protected override void AddResourceIdCore(object resourceIdObject)

Parameters

resourceIdObject

object

The resource ID object to add to the list.

Overrides ComplexResourceIdMapper.AddResourceIdCore(object)

ClearResourceIds()

Removes all resource identifiers from the underlying list.

Declaration

cs-api-definition
public override void ClearResourceIds()

Overrides ResourceIdMapper.ClearResourceIds()

CreateResourceIdCore()

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

Declaration

cs-api-definition
protected override object CreateResourceIdCore()

Returns

object

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

Overrides ComplexResourceIdMapper.CreateResourceIdCore()

SetResourceList(object)

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

Declaration

cs-api-definition
public override void SetResourceList(object resourceList)

Parameters

resourceList

object

The resource list to be managed by this mapper.

Overrides ComplexResourceIdMapperBase.SetResourceList(object)