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

◆ CanOptimizeSwitchType()

static bool System.Linq.Expressions.Compiler.LambdaCompiler.CanOptimizeSwitchType ( Type valueType)
inlinestaticprivate

Definition at line 3055 of file LambdaCompiler.cs.

3056 {
3057 TypeCode typeCode = valueType.GetTypeCode();
3058 if ((uint)(typeCode - 4) <= 8u)
3059 {
3060 return true;
3061 }
3062 return false;
3063 }

Referenced by System.Linq.Expressions.Compiler.LambdaCompiler.TryEmitSwitchInstruction().