Show / Hide Table of Contents

Class GeneralBitFlagsExtensions

Helpers for GeneralBitFlags

Inheritance
System.Object
GeneralBitFlagsExtensions
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 GeneralBitFlagsExtensions

Methods

| Improve this Doc View Source

Includes(GeneralBitFlags, GeneralBitFlags)

This is equivalent of System.Enum.HasFlag(System.Enum) in .NET Core, but since the .NET FW version is really slow (due to un-/boxing and reflection) we use this wrapper.

Declaration
public static bool Includes(this GeneralBitFlags flagData, GeneralBitFlags flag)
Parameters
Type Name Description
GeneralBitFlags flagData
GeneralBitFlags flag
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors