New to Telerik UI for WinForms? Start a free 30-day trial

Maps a non-generic enumerable, invoking its public Add and Remove methods when present.

Definition

Namespace:Telerik.WinControls.UI.Scheduler

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class EnumerableExceptionMapper : ExceptionMapper<IEnumerable>, IExceptionMapper

Inheritance: objectExceptionMapper<IEnumerable>EnumerableExceptionMapper

Implements: IExceptionMapper

Inherited Members ExceptionMapper<IEnumerable>.exceptionListExceptionMapper<IEnumerable>.GetExceptions()

Constructors

Initializes the mapper with the constructor used to create exception items.

C#
public EnumerableExceptionMapper(ConstructorInfo constructorInfo)
Parameters:constructorInfoConstructorInfo

The item constructor to invoke; it must be parameterless for AddNew() to create an item.

Methods

Invokes the enumerable's public Add method when one is available.

C#
public override void AddException(object exceptionItem)
Parameters:exceptionItemobject

The exception item to add.

Overrides: ExceptionMapper<IEnumerable>.AddException(object)

If the runtime type has no public Add method, this call does not insert the item.

Creates a new exception item without adding it to the enumerable.

C#
public override object AddNew()
Returns:

object

The constructed item, or null when no constructor was supplied.

Overrides: ExceptionMapper<IEnumerable>.AddNew()

Invokes the enumerable's public Remove method when one is available.

C#
public override void DeleteException(object exceptionItem)
Parameters:exceptionItemobject

The exception item to remove.

Overrides: ExceptionMapper<IEnumerable>.DeleteException(object)

If the runtime type has no public Remove method, this call does not remove the item.

Assigns the enumerable and caches its public Add and Remove methods when present.

C#
public override void SetExceptionList(object exceptionList)
Parameters:exceptionListobject

The enumerable containing recurrence exceptions.

Overrides: ExceptionMapper<IEnumerable>.SetExceptionList(object)