public static T Deserialize <T>(string filePath, ITextSerializer <T> textSerializer) { var streamSerializer = new TextStreamSerializer <T>(textSerializer); var value = FileSerializer.Deserialize <T>(filePath, streamSerializer); return(value); }
public T Deserialize(string filePath) { var value = FileSerializer.Deserialize(filePath, this.StreamSerializer); return(value); }