Exemple #1
0
 public T FromTomlFile <T>(string filePath) where T : class, new()
 {
     return(Serialization.FromTomlFile <T>(filePath));
 }
Exemple #2
0
 public T FromJsonStream <T>(Stream stream) where T : class, new()
 {
     return(Serialization.FromJsonStream <T>(stream));
 }
Exemple #3
0
 public T FromToml <T>(string toml) where T : class, new()
 {
     return(Serialization.FromToml <T>(toml));
 }
Exemple #4
0
 public T FromJson <T>(string json) where T : class, new()
 {
     return(Serialization.FromJson <T>(json));
 }
Exemple #5
0
 public void ToJsonSteam(object obj, Stream stream, bool formatted = false)
 {
     Serialization.ToJsonSteam(obj, stream, formatted);
 }
Exemple #6
0
 public string ToJson(object obj, bool formatted = false)
 {
     return(Serialization.ToJson(obj, formatted));
 }
Exemple #7
0
 public T FromYaml <T>(string yaml) where T : class, new()
 {
     return(Serialization.FromYaml <T>(yaml));
 }
Exemple #8
0
 public string ToYaml(object obj)
 {
     return(Serialization.ToYaml(obj));
 }