StringExtensions Class |
[This is preliminary documentation and is subject to change.]
Namespace: CSInfrastructure.Extensions
public static class StringExtensions
The StringExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| AddSpacesBetweenCases |
Adds spaces between cases in a string.
When toSentence is true, converts it to lowercase too
| |
| ConvertToT |
Converts a string to a collection of T | |
| ParseAsDateTimeInvariant |
Converts a string to UTC datetime.
The string may also be an OLE Automation date number
| |
| ParseAsVersion |
Converts a string as Version | |
| ParseDoubleAsInvariant |
Converts a string to double, ignoring culture settings
| |
| ParseGuidAsInvariant |
Converts a string to GUID
| |
| ParseIntAsInvariant |
Converts a string to integer, ignoring culture settings
| |
| ToCamelCase |
Converts a string to camelCase
| |
| ToEnumTEnum(String) |
Converts a string to an enum.
When converting fails, throws an exception
| |
| ToEnumTEnum(String, TEnum) |
Converts a string to an enum.
When converting fails, returns defaultValue instead
| |
| TryMatchEnumValueTEnum | ||
| UppercaseFirst |
Converts the first character in a string to uppercase
|