Enum SplitFlagsOptions
Provides options for splitting flags.
Namespace: Singulink.Enums
Assembly: Singulink.Enums.dll
Syntax
[Flags]
public enum SplitFlagsOptions
Fields
Name | Description |
---|---|
AllMatchingFlags | Include all matching flags in the result, even if they are redundant. If this option is not specified, only the minimal set of flags that can be
combined to form the original value are included. Zero-value flags are never included in a SplitFlags<T>(T, SplitFlagsOptions) result regardless of this option. When that converting flags to strings, a non-empty string is always returned, so zero values
will return the name of the zero value enumeration member or |
ExcludeRemainder | Exclude any remainder that cannot be represented by any defined flags from the result. This flag takes precedence over the ThrowOnRemainder flag if both are set. |
None | Use the default options (no option flags set) when splitting flags. |
ThrowOnRemainder | Throw ArgumentException if there is a remainder that cannot be represented by any defined flags. |