File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
src/Microsoft.OpenApi/Extensions Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -38,24 +38,5 @@ public static T GetEnumFromDisplayName<T>(this string displayName)
38
38
39
39
return default ;
40
40
}
41
-
42
- /// <summary>
43
- /// Capitalizes each letter of a word in a string.
44
- /// </summary>
45
- /// <param name="input">String containing the words to be capitalized, delimited by the '-' character.</param>
46
- /// <returns>String value with each word capitalized and concatenated.</returns>
47
- public static string ToPascalCase ( this string input )
48
- => string . IsNullOrEmpty ( input ) ? input : string . Join (
49
- null , input . Split (
50
- new char [ ] { '-' } , StringSplitOptions . RemoveEmptyEntries )
51
- . Select ( ToFirstCharacterUpperCase ) ) ;
52
-
53
- /// <summary>
54
- /// Capitalizes the first letter of an input string.
55
- /// </summary>
56
- /// <param name="input">String with first letter to be capitalized. </param>
57
- /// <returns>The string value with the first letter capitalized.</returns>
58
- public static string ToFirstCharacterUpperCase ( this string input )
59
- => string . IsNullOrEmpty ( input ) ? input : char . ToUpperInvariant ( input . FirstOrDefault ( ) ) + input . Substring ( 1 ) ;
60
41
}
61
42
}
You can’t perform that action at this time.
0 commit comments