Show / Hide Table of Contents

Class FhirNameConventionExtensions

A FHIR name convention extensions.

Inheritance
System.Object
FhirNameConventionExtensions
Namespace: Microsoft.Health.Fhir.CodeGenCommon.Extensions
Assembly: Microsoft.Health.Fhir.CodeGenCommon.dll
Syntax
public static class FhirNameConventionExtensions : object

Methods

| Improve this Doc View Source

ToCamelCase(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.String word

The word to act on.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

Word as a string.

| Improve this Doc View Source

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.String[] words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String[]

Word as a string.

| Improve this Doc View Source

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.String> words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

Words as a string.

| Improve this Doc View Source

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.String word

The word to act on.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String[] words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String[]

Words as a string[].

| Improve this Doc View Source

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.String> words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String word

The word to act on.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String[] words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

Returns
Type Description
System.String[]

The given data converted to a string.

| Improve this Doc View Source

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.String> words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String word

The word to act on.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String[] words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

Returns
Type Description
System.String[]

The given data converted to a string.

| Improve this Doc View Source

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.String> words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String word

The word to act on.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

Word as a string.

| Improve this Doc View Source

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.String[] words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String[]

Word as a string.

| Improve this Doc View Source

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.String> words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

Words as a string.

| Improve this Doc View Source

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.String word

The word to act on.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String[] words

The words.

Returns
Type Description
System.String[]

The given data converted to a string.

| Improve this Doc View Source

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.String> words

The words.

Returns
Type Description
System.String

The given data converted to a string.

| Improve this Doc View Source

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.String word

The word to act on.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

Words as a string[].

| Improve this Doc View Source

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.String[] words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String[]

Words as a string[].

| Improve this Doc View Source

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.String> words

The words.

System.Boolean removeDelimiters

(Optional) True to remove delimiters.

System.String joinDelimiter

(Optional) The word delimiter to use when joining.

Returns
Type Description
System.String

The given data converted to a string.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX