/// <summary> /// Determines whether the specified type is convertible from string. /// </summary> /// <param name="type">The type.</param> /// <returns> /// <c>true</c> if the specified type is convertible from string; otherwise, <c>false</c>. /// </returns> public static bool CanCreateFromString(Type type) { return(JsvReader.GetParseFn(type) != null); }
/// <summary> /// Parses the specified type. /// </summary> /// <param name="type">The type.</param> /// <param name="value">The value.</param> /// <returns></returns> public static object DeserializeFromString(string value, Type type) { return(value == null ? null : JsvReader.GetParseFn(type)(value)); }
public ParseStringDelegate GetParseFn(Type type) { return(JsvReader.GetParseFn(type)); }