Gets the zero-based index of a method enum value, useful for histograms.
The method to get the index for.
The index of the method.
Gets the zero-based index of a method enum value, useful for histograms.