Table of Contents

Class ExcelColumnAttribute

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

Maps a property to a worksheet column by header name. Apply more than once to accept alternate header spellings for the same property.

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

Constructors

ExcelColumnAttribute(string)

Creates an attribute that maps the property to the column with the given header name.

public ExcelColumnAttribute(string name)

Parameters

name string

Properties

Name

The header name this attribute matches.

public string Name { get; }

Property Value

string