コード例 #1
0
			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)
				};
			}
コード例 #2
0
 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)
     });
 }