/// <summary> /// Parses the specified value. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public static T DeserializeFromString <T>(string value) { if (string.IsNullOrEmpty(value)) { return(default(T)); } return((T)JsvReader <T> .Parse(value)); }
public T DeserializeFromString(string value) { if (typeof(T) == typeof(string)) { return((T)(object)value); } return((T)JsvReader <T> .Parse(value)); }