public static object To(Type what, TomlValue value) { var deserializer = TomlSerializationMethods.GetDeserializer(what) ?? TomlSerializationMethods.GetCompositeDeserializer(what); return(deserializer.Invoke(value)); }
public static T To <T>(TomlValue value) { var deserializer = TomlSerializationMethods.GetDeserializer <T>() ?? TomlSerializationMethods.GetCompositeDeserializer <T>(); return(deserializer.Invoke(value)); }