コード例 #1
0
 public object Deserialize(string value, Type type, StringSerializer stringSerializer)
 {
     return(Enum.ToObject(type, stringSerializer.Deserialize(value, Enum.GetUnderlyingType(type))));
 }
コード例 #2
0
 public string Serialize(object obj, Type type, StringSerializer stringSerializer)
 {
     return(stringSerializer.Serialize(obj, Enum.GetUnderlyingType(type)));
 }