public void TryToConvert(string path, string extension, string goalExtension, string goalPath) { var converter = imageConverters.First(c => c.Extension == extension); var file = fileWorker.Read(path); var image = converter.Decode(file); WriteImage(image, path, goalExtension, goalPath); }
public void Deserialize(FileStream s) { var read = fileWorker.Read(s); var obj = listSerializer.Deserialize(read); this.Count = obj.Count; this.Head = obj.Head; this.Tail = obj.Tail; }
private static IEnumerable <IActionPlugin> GetActionPluginsFromFile( IFileWorker <IEnumerable <IActionPlugin> > typeFileWorker) { if (typeFileWorker == null) { throw new ArgumentNullException(nameof(typeFileWorker)); } return(typeFileWorker.Read()); }
public Mesh Read(string path) { var file = fileWorker.Read(path); return(Decode(file)); }