Example #1
0
 public FromString8Converter(object defaultValue, TryConvert tryConvert)
 {
     _tryConvert   = tryConvert;
     _defaultValue = (T)(TypeConverterFactory.ConvertSingle(defaultValue, typeof(T)) ?? default(T));
 }
Example #2
0
 public TimeSpanConverter(object defaultValue)
 {
     _defaultValue = (TimeSpan)(TypeConverterFactory.ConvertSingle(defaultValue, typeof(TimeSpan)) ?? default(TimeSpan));
 }