Table of Contents

Class ClassMapCollection

Namespace
CsvHelper.Configuration
Assembly
CsvHelper.dll

Collection that holds CsvClassMaps for record types.

public class ClassMapCollection
Inheritance
ClassMapCollection
Inherited Members

Constructors

ClassMapCollection(CsvContext)

Creates a new instance using the given configuration.

public ClassMapCollection(CsvContext context)

Parameters

context CsvContext

The context.

Properties

this[Type]

Gets the ClassMap for the specified record type.

public virtual ClassMap? this[Type type] { get; }

Parameters

type Type

The record type.

Property Value

ClassMap

The ClassMap.

Methods

Find<T>()

Finds the ClassMap for the specified record type.

public virtual ClassMap<T>? Find<T>()

Returns

ClassMap<T>

The ClassMap for the specified record type.

Type Parameters

T

The record type.