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
Type | Name |
---|---|
System.String | value |
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
Type | Name |
---|---|
System.String | value |
<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
Type | Name |
---|---|
System.String | value |
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
Type | Name |
---|---|
System.String | value |
System.Type | type |