Example #1
0
 /// <inheritdoc/>
 public override T Clone <T>(T item, TSetting setting)
 {
     return(JsonFile.Clone(item, setting.JsonSerializerSettings));
 }
Example #2
0
 /// <inheritdoc/>
 public override Stream ToStream <T>(T item, TSetting setting)
 {
     return(JsonFile.ToStream(item, setting.JsonSerializerSettings));
 }
Example #3
0
 /// <inheritdoc/>
 public override T FromStream <T>(Stream stream, TSetting setting)
 {
     return(JsonFile.FromStream <T>(stream, setting.JsonSerializerSettings));
 }
Example #4
0
 /// <inheritdoc/>
 protected override IPooledStream GetStream(T item)
 {
     return(JsonFile.ToStream(item, this.settings));
 }