Beispiel #1
0
        public static void Serialize <T>(string filePath, T value, ITextSerializer <T> textSerializer, bool overwrite = true)
        {
            var streamSerializer = new TextStreamSerializer <T>(textSerializer);

            FileSerializer.Serialize(filePath, value, streamSerializer, overwrite);
        }
 public void Serialize(string filePath, T obj, bool overwrite = true)
 {
     FileSerializer.Serialize(filePath, obj, this.StreamSerializer, overwrite);
 }