Skip to content

Class ProfileFlagsExtensions

Extension methods for the FacturXDotNet.Models.FacturXProfileFlags enumeration.

Assembly: FacturXDotNet.dll
csharp
public static class ProfileFlagsExtensions

Methods

Match(FacturXProfileFlags, FacturXProfile)

Determines whether the flags contain the specified profile.

csharp
public static bool Match(this FacturXProfileFlags flags, FacturXProfile profile)
Returns

System.Boolean

Parameters
TypeName
FacturXDotNet.Models.FacturXProfileFlagsflags
FacturXDotNet.Models.FacturXProfileprofile

AndLower(FacturXProfile)

Return a FacturXDotNet.Models.FacturXProfileFlags that has all the flags that are lower or equal to the current flags.

csharp
public static FacturXProfileFlags AndLower(this FacturXProfile flags)
Returns

FacturXDotNet.Models.FacturXProfileFlags

Parameters
TypeName
FacturXDotNet.Models.FacturXProfileflags

AndHigher(FacturXProfile)

Return a FacturXDotNet.Models.FacturXProfileFlags that has all the flags that are higher or equal to the current flags.

csharp
public static FacturXProfileFlags AndHigher(this FacturXProfile flags)
Returns

FacturXDotNet.Models.FacturXProfileFlags

Parameters
TypeName
FacturXDotNet.Models.FacturXProfileflags

GetMinProfile(FacturXProfileFlags)

Return the smallest flag in the given flags.

csharp
public static FacturXProfile GetMinProfile(this FacturXProfileFlags flags)
Returns

FacturXDotNet.Models.FacturXProfile

Parameters
TypeName
FacturXDotNet.Models.FacturXProfileFlagsflags

GetMaxProfile(FacturXProfileFlags)

Return the largest flag in the given flags.

csharp
public static FacturXProfile GetMaxProfile(this FacturXProfileFlags flags)
Returns

FacturXDotNet.Models.FacturXProfile

Parameters
TypeName
FacturXDotNet.Models.FacturXProfileFlagsflags

The tools are open source and released under the MIT License, feel free to use, modify, and share.