|
static readonly BindingFlags | StaticBind = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic |
|
static readonly BindingFlags | InstanceBind = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic |
|
static readonly Assembly | ZipAssembly = typeof(System.IO.Packaging.Package).Assembly |
|
static readonly Type | ZipArchiveType = ZipAssembly.GetType("MS.Internal.IO.Zip.ZipArchive") |
|
static readonly Type | CompressionMethodType = ZipAssembly.GetType("MS.Internal.IO.Zip.CompressionMethodEnum") |
|
static readonly Type | DeflateOptionType = ZipAssembly.GetType("MS.Internal.IO.Zip.DeflateOptionEnum") |
|
static readonly MethodInfo | OpenOnFileMethod = ZipArchiveType.GetMethod("OpenOnFile", StaticBind) |
|
static readonly MethodInfo | OpenOnStreamMethod = ZipArchiveType.GetMethod("OpenOnStream", StaticBind) |
|
static readonly MethodInfo | GetFilesMethod = ZipArchiveType.GetMethod("GetFiles", InstanceBind) |
|
static readonly MethodInfo | GetFileMethod = ZipArchiveType.GetMethod("GetFile", InstanceBind) |
|
static readonly MethodInfo | FileExistsMethod = ZipArchiveType.GetMethod("FileExists", InstanceBind) |
|
static readonly MethodInfo | AddFileMethod = ZipArchiveType.GetMethod("AddFile", InstanceBind) |
|
static readonly MethodInfo | DeleteFileMethod = ZipArchiveType.GetMethod("DeleteFile", InstanceBind) |
|
static readonly Func< string, FileMode, FileAccess, FileShare, bool, object > | OpenOnFile = OpenOnFileMethod.StaticCall<Func<string, FileMode, FileAccess, FileShare, bool, object>>() |
|
static readonly Func< Stream, FileMode, FileAccess, bool, object > | OpenOnStream = OpenOnStreamMethod.StaticCall<Func<Stream, FileMode, FileAccess, bool, object>>() |
|
static readonly Func< object, object > | GetFiles = GetFilesMethod.InstanceCall<Func<object, object>>() |
|
static readonly Func< object, string, object > | GetFile = GetFileMethod.InstanceCall<Func<object, string, object>>() |
|
static readonly Func< object, string, bool > | FileExists = FileExistsMethod.InstanceCall<Func<object, string, bool>>() |
|
static readonly Func< object, string, ushort, byte, object > | AddFile = AddFileMethod.InstanceCall<Func<object, string, ushort, byte, object>>() |
|
static readonly Action< object, string > | DeleteFile = DeleteFileMethod.InstanceCall<Action<object, string>>() |
|
Definition at line 107 of file MyZipArchiveReflection.cs.