CodeQL library for C#
codeql/csharp-all 3.1.1 (changelog, source)
Search

Member predicate Enum::getUnderlyingType

Gets the underlying integral type of this enum, not to be confused with its base type which is always System.Enum.

For example, the underlying type of Parity is int in

enum Parity : int {
  Even,
  Odd
}
IntegralType getUnderlyingType()