public static void CopyTo(IVault vlt, VaultAssetType vat, string van, string target, FileMode mode) { var asset = vlt.GetAsset(vat, van); using (Stream s = vlt.LoadAsset(asset), fs = new FileStream(target, mode)) { s.CopyTo(fs); } }