Skip to main content

StringTextExtensions

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class StringTextExtensions

Methods

To<T>(String)

View Source
Declaration
[Obsolete("Use ConvertTo<T>")]
public static T To<T>(this string value)
Returns

<T>

Parameters
TypeName
System.Stringvalue
Type Parameters
  • T

To<T>(String, T)

View Source
Declaration
[Obsolete("Use ConvertTo<T>")]
public static T To<T>(this string value, T defaultValue)
Returns

<T>

Parameters
TypeName
System.Stringvalue
<T>defaultValue
Type Parameters
  • T

ToOrDefaultValue<T>(String)

View Source
Declaration
[Obsolete("Use ConvertTo<T>")]
public static T ToOrDefaultValue<T>(this string value)
Returns

<T>

Parameters
TypeName
System.Stringvalue
Type Parameters
  • T

To(String, Type)

View Source
Declaration
[Obsolete("Use ConvertTo<T>")]
public static object To(this string value, Type type)
Returns

System.Object

Parameters
TypeName
System.Stringvalue
System.Typetype