Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HexDigit()

static int System.Diagnostics.Tracing.EventSource.HexDigit ( char c)
inlinestaticprivateinherited

Definition at line 3166 of file EventSource.cs.

3167 {
3168 if ('0' <= c && c <= '9')
3169 {
3170 return c - 48;
3171 }
3172 if ('a' <= c)
3173 {
3174 c = (char)(c - 32);
3175 }
3176 if ('A' <= c && c <= 'F')
3177 {
3178 return c - 65 + 10;
3179 }
3180 throw new ArgumentException(SR.Format(SR.EventSource_BadHexDigit, c), "traits");
3181 }

References System.SR.EventSource_BadHexDigit, and System.SR.Format().

Referenced by System.Diagnostics.Tracing.EventSource.AddValueToMetaData().