StringSugarcoaters Class
Provides methods for Sugarcoater<string>.
C#
public static class StringSugarcoaters
- Inheritance
-
String
Sugarcoaters
Methods
Is |
Checks if the specified type is string or BindResult<string>. |
Of(Type) |
Gets the sugarcoater for the specified type. |
Methods Detail
IsValid(Type)
Checks if the specified type is string or BindResult<string>.
C#
public static bool IsValid(Type type)
Parameters
- type
- Type
The type to test.
Returns
true
if the specified type is string or BindResult<string>; otherwise,
false
.
Of(Type)
Gets the sugarcoater for the specified type.
C#
public static Sugarcoater<string> Of(Type type)
Parameters
- type
- Type
The type, which must be string or BindResult<string>.
Returns
The sugarcoater for the specified type.