Show / Hide Table of Contents

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 Source

HasFlag(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

| Improve this Doc View Source

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)

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors