CodeQL library for C#
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()