Click or drag to resize

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
)

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: Boolean
True 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