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

Provides an abstract base class for complex resource identifier mappers that can create and manage complex objects containing resource ID properties.

Definition

Constructors

Initializes a new instance of the ComplexResourceIdMapper class with the specified resource ID property descriptor.

C#
public ComplexResourceIdMapper(PropertyDescriptor resourceIdDescriptor)
Parameters:resourceIdDescriptorPropertyDescriptor

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

Methods

Adds a resource identifier by creating a new complex object, setting its resource ID property, and adding it to the collection.

C#
public override void AddResourceId(EventId eventId)
Parameters:eventIdEventId

The EventId to add to the resource collection.

Overrides: ComplexResourceIdMapperBase.AddResourceId(EventId)

Adds the created resource ID object to the underlying collection.

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

The resource ID object to add to the collection.

Creates a new resource ID object instance that will hold the resource identifier value.

C#
protected abstract object CreateResourceIdCore()
Returns:

object

A new object instance for holding the resource identifier, or null if creation failed.