Class ZipEntryExtensions
General ZipEntry helper extensions
Inheritance
System.Object
ZipEntryExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public static class ZipEntryExtensions
Methods
| Improve this Doc View SourceHasFlag(ZipEntry, GeneralBitFlags)
Efficiently check if a flag is set without enum un-/boxing
Declaration
public static bool HasFlag(this ZipEntry entry, GeneralBitFlags flag)
Parameters
Type | Name | Description |
---|---|---|
ZipEntry | entry | |
GeneralBitFlags | flag |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the flag was set |
SetFlag(ZipEntry, GeneralBitFlags, Boolean)
Efficiently set a flag without enum un-/boxing
Declaration
public static void SetFlag(this ZipEntry entry, GeneralBitFlags flag, bool enabled = true)
Parameters
Type | Name | Description |
---|---|---|
ZipEntry | entry | |
GeneralBitFlags | flag | |
System.Boolean | enabled | Whether the passed flag should be set (1) or cleared (0) |