Click or drag to resize

StringExtensions Class

[This is preliminary documentation and is subject to change.]

Defines extensions for String
Inheritance Hierarchy
SystemObject
  CSInfrastructure.ExtensionsStringExtensions

Namespace:  CSInfrastructure.Extensions
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static class StringExtensions

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleAddSpacesBetweenCases
Adds spaces between cases in a string. When toSentence is true, converts it to lowercase too
Public methodStatic memberConvertToT
Converts a string to a collection of T
Public methodStatic memberParseAsDateTimeInvariant
Converts a string to UTC datetime. The string may also be an OLE Automation date number
Public methodStatic memberParseAsVersion
Converts a string as Version
Public methodStatic memberParseDoubleAsInvariant
Converts a string to double, ignoring culture settings
Public methodStatic memberParseGuidAsInvariant
Converts a string to GUID
Public methodStatic memberParseIntAsInvariant
Converts a string to integer, ignoring culture settings
Public methodStatic memberToCamelCase
Converts a string to camelCase
Public methodStatic memberToEnumTEnum(String)
Converts a string to an enum. When converting fails, throws an exception
Public methodStatic memberToEnumTEnum(String, TEnum)
Converts a string to an enum. When converting fails, returns defaultValue instead
Public methodStatic memberTryMatchEnumValueTEnum
Public methodStatic memberUppercaseFirst
Converts the first character in a string to uppercase
Top
See Also