public object Deserialize(string value, Type type, StringSerializer stringSerializer) { return(Enum.ToObject(type, stringSerializer.Deserialize(value, Enum.GetUnderlyingType(type)))); }
public string Serialize(object obj, Type type, StringSerializer stringSerializer) { return(stringSerializer.Serialize(obj, Enum.GetUnderlyingType(type))); }