Function GenericEnum.getEnumOrdinal

Returns the ordinal for the given symbol.

ulong getEnumOrdinal (
  string symbol
) const;

Throws

AvroRuntimeException if the symbol does not match any enum value.