NameTransform Enumeration

Indicates how to transform the argument name, subcommand name, or value description if they are not explicitly specified but automatically derived from the member or type name.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public enum NameTransform

Members

None0 The names are used without modification.
PascalCase1 The names are transformed to PascalCase. This removes all underscores, and the first character, and every character after an underscore, is changed to uppercase. The case of other characters is not changed.
CamelCase2 The names are transformed to camelCase. Similar to PascalCase, but the first character will not be uppercase.
DashCase3 The names are transformed to dash-case. This removes leading and trailing underscores, changes all characters to lower-case, replaces underscores with a dash, and reduces consecutive underscores to a single dash. A dash is inserted before previously capitalized letters.
SnakeCase4 The names are transformed to snake_case. Similar to DashCase, but uses an underscore instead of a dash.

See Also