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

◆ Create()

static Instruction System.Linq.Expressions.Interpreter.MulOvfInstruction.Create ( Type type)
inlinestaticinherited

Definition at line 131 of file MulOvfInstruction.cs.

132 {
133 return type.GetNonNullableType().GetTypeCode() switch
134 {
135 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new MulOvfInt16()),
136 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new MulOvfInt32()),
137 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new MulOvfInt64()),
138 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new MulOvfUInt16()),
139 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new MulOvfUInt32()),
140 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new MulOvfUInt64()),
141 _ => MulInstruction.Create(type),
142 };
143 }

References System.Linq.Expressions.Interpreter.MulInstruction.Create(), System.Linq.Expressions.Interpreter.MulOvfInstruction.s_Int16, System.Linq.Expressions.Interpreter.MulOvfInstruction.s_Int32, System.Linq.Expressions.Interpreter.MulOvfInstruction.s_Int64, System.Linq.Expressions.Interpreter.MulOvfInstruction.s_UInt16, System.Linq.Expressions.Interpreter.MulOvfInstruction.s_UInt32, System.Linq.Expressions.Interpreter.MulOvfInstruction.s_UInt64, and System.type.

Referenced by System.Linq.Expressions.Interpreter.InstructionList.EmitMul().