问题现在有一个FileStorageService类,继承自IStorageService,具体实现如下 public interface IStorageService{ void WriteAllBytes(string path, byte[] buffer); b ...
问题
现在有一个FileStorageService类,继承自IStorageService,具体实现如下
public interface IStorageService{ void WriteAllBytes(get='_blank'>string path, byte[] buffer); byte[] ReadAllBytes(string path);}public class FileStorageService : IStorageService{ public void WriteAllBytes(string path, byte[] buffer) { File.WriteAllBytes(path, buffer); } public byte[] ReadAllBytes(string path) { return File.ReadAllBytes(path); }}
原标题:错误处理(Operation Result)方法
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。