EAPUtilDevLogUnknownBits Method |
Check the specified enumeration value against its enumeration in order
to detect use of unknown bits. If unknown bits are detected devlog a warning.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool DevLogUnknownBits(
Enum e,
string source,
string logMessagePrefix
)
Public Shared Function DevLogUnknownBits (
e As Enum,
source As String,
logMessagePrefix As String
) As Boolean
Parameters
- e
- Type: SystemEnum
The enumeration value to check (may contain multiple flag bits). - source
- Type: SystemString
The method to DevLog as the source of the warning. - logMessagePrefix
- Type: SystemString
The message prefix to Devlog.
Return Value
Type:
BooleanTrue if all bits are known, false if there are unknown bits.
Remarks
Note that unknown bits are most often caused by a newer component calling
an older component that was compiled against an older version of the enumeration.
This method relies on the ValidBits attribute being declared on the enumeration.
See Also