Class FhirNameConventionExtensions
A FHIR name convention extensions.
Inheritance
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Extensions
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public static class FhirNameConventionExtensions : object
Methods
| Improve this Doc View SourceToCamelCase(String, Boolean, String)
A string extension method that converts a word to a camelCase.
Declaration
public static string ToCamelCase(this string word, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Word as a string. |
ToCamelCase(String[], Boolean, String)
An extension method that converts an array of words each to camelCase.
Declaration
public static string[] ToCamelCase(this string[] words, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Word as a string. |
ToCamelCaseWord(IEnumerable<String>, Boolean, String)
An IEnumerable<string> extension method that converts the words to a camelWord.
Declaration
public static string ToCamelCaseWord(this IEnumerable<string> words, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Words as a string. |
ToLowerCase(String, Boolean, String)
A string extension method that converts this object to a lower case.
Declaration
public static string ToLowerCase(this string word, bool removeDelimiters = true, string joinDelimiter = "_")
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerCase(String[], Boolean, String)
An extension method that converts an array of words each to lower_invariant.
Declaration
public static string[] ToLowerCase(this string[] words, bool removeDelimiters = true, string joinDelimiter = "_")
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Words as a string[]. |
ToLowerCaseWord(IEnumerable<String>, Boolean, String)
An IEnumerable<string> extension method that converts words a single lower_invariant word.
Declaration
public static string ToLowerCaseWord(this IEnumerable<string> words, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerKebabCase(String, Boolean)
A string extension method that converts this object to a lower-kebab-case.
Declaration
public static string ToLowerKebabCase(this string word, bool removeDelimiters = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerKebabCase(String[], Boolean)
A string extension method that converts this object to a lower-kebab-case.
Declaration
public static string[] ToLowerKebabCase(this string[] words, bool removeDelimiters = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerKebabCaseWord(IEnumerable<String>, Boolean)
An IEnumerable<string> extension method that converts this object to a lower-kebab-case word.
Declaration
public static string ToLowerKebabCaseWord(this IEnumerable<string> words, bool removeDelimiters = true)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerSnakeCase(String, Boolean)
A string extension method that converts this object to a lower_snake_case.
Declaration
public static string ToLowerSnakeCase(this string word, bool removeDelimiters = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerSnakeCase(String[], Boolean)
A string extension method that converts this object to a lower_snake_case.
Declaration
public static string[] ToLowerSnakeCase(this string[] words, bool removeDelimiters = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToLowerSnakeCaseWord(IEnumerable<String>, Boolean)
An IEnumerable<string> extension method that converts this object to a lower_snake_case word.
Declaration
public static string ToLowerSnakeCaseWord(this IEnumerable<string> words, bool removeDelimiters = true)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToPascalCase(String, Boolean, String)
A string extension method that converts a word to PascalCase.
Declaration
public static string ToPascalCase(this string word, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Word as a string. |
ToPascalCase(String[], Boolean, String)
An extension method that converts an array of words each to PascalCase.
Declaration
public static string[] ToPascalCase(this string[] words, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Word as a string. |
ToPascalCaseWord(IEnumerable<String>, Boolean, String)
An IEnumerable<string> extension method that converts the words to a PascalWord.
Declaration
public static string ToPascalCaseWord(this IEnumerable<string> words, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Words as a string. |
ToPascalDotCase(String)
A string extension method that converts this object to a pascal dot case.
Declaration
public static string ToPascalDotCase(this string word)
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToPascalDotCase(String[])
A string extension method that converts this object to a pascal dot case.
Declaration
public static string[] ToPascalDotCase(this string[] words)
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToPascalDotCaseWord(IEnumerable<String>)
An IEnumerable<string> extension method that converts this object to a pascal dot case word.
Declaration
public static string ToPascalDotCaseWord(this IEnumerable<string> words)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |
ToUpperCase(String, Boolean, String)
An extension method that converts an array of words each to UPPER CASE.
Declaration
public static string ToUpperCase(this string word, bool removeDelimiters = true, string joinDelimiter = "_")
Parameters
Type | Name | Description |
---|---|---|
System. |
word | The word to act on. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Words as a string[]. |
ToUpperCase(String[], Boolean, String)
An extension method that converts an array of words each to UPPER INVARIANT.
Declaration
public static string[] ToUpperCase(this string[] words, bool removeDelimiters = true, string joinDelimiter = "_")
Parameters
Type | Name | Description |
---|---|---|
System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
Words as a string[]. |
ToUpperCaseWord(IEnumerable<String>, Boolean, String)
An IEnumerable<string> extension method that converts words a single UPPER_INVARIANT word.
Declaration
public static string ToUpperCaseWord(this IEnumerable<string> words, bool removeDelimiters = true, string joinDelimiter = "")
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
words | The words. |
System. |
removeDelimiters | (Optional) True to remove delimiters. |
System. |
joinDelimiter | (Optional) The word delimiter to use when joining. |
Returns
Type | Description |
---|---|
System. |
The given data converted to a string. |