Beispiel #1
0
        public static object To(Type what, TomlValue value)
        {
            var deserializer = TomlSerializationMethods.GetDeserializer(what) ?? TomlSerializationMethods.GetCompositeDeserializer(what);

            return(deserializer.Invoke(value));
        }
Beispiel #2
0
        public static T To <T>(TomlValue value)
        {
            var deserializer = TomlSerializationMethods.GetDeserializer <T>() ?? TomlSerializationMethods.GetCompositeDeserializer <T>();

            return(deserializer.Invoke(value));
        }