StringConverter Class

Helper class to convert strings to other data types.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static class StringConverter
Inheritance
Object    StringConverter

Methods

TryParse(String, Boolean)Tries to convert the specified string to its System.Boolean equivalent.
TryParse(String, Guid)Tries to convert the specified string to its System.Guid equivalent.
TryParse(String, Byte, CultureInfo)Tries to convert the specified string to its System.Byte equivalent.
TryParse(String, DateOnly, CultureInfo)Tries to convert the specified string to its System.DateOnly equivalent.
TryParse(String, DateTime, CultureInfo)Tries to convert the specified string to its System.DateTime equivalent.
TryParse(String, DateTimeOffset, CultureInfo)Tries to convert the specified string to its System.DateTimeOffset equivalent.
TryParse(String, Decimal, CultureInfo)Tries to convert the specified string to its System.Decimal equivalent.
TryParse(String, Double, CultureInfo)Tries to convert the specified string to its System.Double equivalent.
TryParse(String, Int16, CultureInfo)Tries to convert the specified string to its System.Int16 (short) equivalent.
TryParse(String, Int32, CultureInfo)Tries to convert the specified string to its System.Int32 (integer) equivalent.
TryParse(String, Int64, CultureInfo)Tries to convert the specified string to its System.Int64 (long) equivalent.
TryParse(String, SByte, CultureInfo)Tries to convert the specified string to its System.SByte equivalent.
TryParse(String, Single, CultureInfo)Tries to convert the specified string to its System.Single (float) equivalent.
TryParse(String, TimeOnly, CultureInfo)Tries to convert the specified string to its System.TimeOnly equivalent.
TryParse(String, TimeSpan, CultureInfo)Tries to convert the specified string to its System.TimeSpan equivalent.
TryParse(String, UInt16, CultureInfo)Tries to convert the specified string to its System.UInt16 (unsigned short) equivalent.
TryParse(String, UInt32, CultureInfo)Tries to convert the specified string to its System.UInt32 (unsigned integer) equivalent.
TryParse(String, UInt64, CultureInfo)Tries to convert the specified string to its System.UInt64 (unsigned long) equivalent.

See Also