Table of Contents

Class ExcelConverterAttribute

Namespace
ExcelReader.Core.Parser
Assembly
ExcelReader.Core.dll

Binds a custom IExcelCellConverter<T> to a property. The converter type must implement IExcelCellConverter<T> for the property's exact type and expose a public parameterless constructor.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class ExcelConverterAttribute : Attribute
Inheritance
ExcelConverterAttribute
Inherited Members

Constructors

ExcelConverterAttribute(Type)

Creates an attribute that binds the given converter type to the property.

public ExcelConverterAttribute(Type converterType)

Parameters

converterType Type

Properties

ConverterType

The IExcelCellConverter<T> implementation to use for this property.

public Type ConverterType { get; }

Property Value

Type