Table of Contents

Class CsvFieldExtensions

Namespace
NuvTools.Report.Sheet.Csv
Assembly
NuvTools.Report.dll

Utility methods for extracting field metadata from types decorated with CsvFieldAttribute.

public static class CsvFieldExtensions
Inheritance
CsvFieldExtensions
Inherited Members

Methods

GetCsvHeader(Type, CsvDelimiter, string?)

Generates a CSV header string from the Caption values.

public static string GetCsvHeader(this Type type, CsvDelimiter delimiter = CsvDelimiter.Semicolon, string? customDelimiter = null)

Parameters

type Type
delimiter CsvDelimiter
customDelimiter string

Returns

string

GetFieldCaptions(Type)

Returns the Caption values for all decorated properties, ordered by Order.

public static IEnumerable<string> GetFieldCaptions(this Type type)

Parameters

type Type

Returns

IEnumerable<string>