CsvNamingPolicy Class

Determines the naming policy used to convert a CLR member name to a CSV column name.

public abstract class CsvNamingPolicy

Constructors

NameDescription
CsvNamingPolicy()Initializes a new instance of the CsvNamingPolicy class.

CsvNamingPolicy()

CsvNamingPolicy.cs

Initializes a new instance of the CsvNamingPolicy class.

protected CsvNamingPolicy()

Properties

NameDescription
CamelCaseGets the naming policy for camelCase.
KebabCaseLowerGets the naming policy for kebab-case (lowercase).
KebabCaseUpperGets the naming policy for KEBAB-CASE (uppercase).
PascalCaseGets the naming policy for PascalCase.
SnakeCaseLowerGets the naming policy for snake_case (lowercase).
SnakeCaseUpperGets the naming policy for SNAKE_CASE (uppercase).

Gets the naming policy for camelCase.

public static CsvNamingPolicy CamelCase { get; }

Property value

CsvNamingPolicy

KebabCaseLower

CsvNamingPolicy.cs

Gets the naming policy for kebab-case (lowercase).

public static CsvNamingPolicy KebabCaseLower { get; }

Property value

CsvNamingPolicy

KebabCaseUpper

CsvNamingPolicy.cs

Gets the naming policy for KEBAB-CASE (uppercase).

public static CsvNamingPolicy KebabCaseUpper { get; }

Property value

CsvNamingPolicy

Gets the naming policy for PascalCase.

public static CsvNamingPolicy PascalCase { get; }

Property value

CsvNamingPolicy

SnakeCaseLower

CsvNamingPolicy.cs

Gets the naming policy for snake_case (lowercase).

public static CsvNamingPolicy SnakeCaseLower { get; }

Property value

CsvNamingPolicy

SnakeCaseUpper

CsvNamingPolicy.cs

Gets the naming policy for SNAKE_CASE (uppercase).

public static CsvNamingPolicy SnakeCaseUpper { get; }

Property value

CsvNamingPolicy

Methods

NameDescription
ConvertName(string)Converts the specified name according to the policy.

ConvertName(string)

Converts the specified name according to the policy.

public abstract string ConvertName(string name)

Parameters

name string
The CLR member name.

Returns

string The converted name.