public static Storage Of(string Target, StorageTargetExists Exists, StringAction Delete, StorageTargetReader Reader, StorageTargetWriter Writer) { return new Storage { Delete = () => Delete(Target), Exists = () => Exists(Target), Reader = () => Reader(Target), Writer = bytes => Writer(Target, bytes) }; }
public static Storage Of(string Target, StorageTargetExists Exists, StringAction Delete, StorageTargetReader Reader, StorageTargetWriter Writer) { return(new Storage { Delete = () => Delete(Target), Exists = () => Exists(Target), Reader = () => Reader(Target), Writer = bytes => Writer(Target, bytes) }); }