Class DefaultConverter<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A universal T to string binding converter
public class DefaultConverter<T> : Converter<T>
Type Parameters
T
- Inheritance
-
Converter<T>DefaultConverter<T>
- Inherited Members
- Extension Methods
Constructors
DefaultConverter()
public DefaultConverter()
Fields
GlobalGetFunc
A static global delegate used if no converter is found.
public static Func<T, string> GlobalGetFunc
Field Value
GlobalSetFunc
A static global delegate used if no converter is found.
public static Func<string, T> GlobalSetFunc
Field Value
Properties
DefaultTimeSpanFormat
public string DefaultTimeSpanFormat { get; set; }
Property Value
Methods
ConvertFromString(string)
protected virtual T ConvertFromString(string value)
Parameters
value
string
Returns
- T
ConvertToString(T)
protected virtual string ConvertToString(T arg)
Parameters
arg
T
Returns
IsNullableEnum(Type)
public static bool IsNullableEnum(Type t)
Parameters
t
Type