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

◆ Create()

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

Definition at line 169 of file ModuloInstruction.cs.

170 {
171 return type.GetNonNullableType().GetTypeCode() switch
172 {
173 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new ModuloInt16()),
174 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new ModuloInt32()),
175 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new ModuloInt64()),
176 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new ModuloUInt16()),
177 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new ModuloUInt32()),
178 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new ModuloUInt64()),
179 TypeCode.Single => s_Single ?? (s_Single = new ModuloSingle()),
180 TypeCode.Double => s_Double ?? (s_Double = new ModuloDouble()),
181 _ => throw ContractUtils.Unreachable,
182 };
183 }

References System.Linq.Expressions.Interpreter.ModuloInstruction.s_Double, System.Linq.Expressions.Interpreter.ModuloInstruction.s_Int16, System.Linq.Expressions.Interpreter.ModuloInstruction.s_Int32, System.Linq.Expressions.Interpreter.ModuloInstruction.s_Int64, System.Linq.Expressions.Interpreter.ModuloInstruction.s_Single, System.Linq.Expressions.Interpreter.ModuloInstruction.s_UInt16, System.Linq.Expressions.Interpreter.ModuloInstruction.s_UInt32, System.Linq.Expressions.Interpreter.ModuloInstruction.s_UInt64, System.type, and System.Dynamic.Utils.ContractUtils.Unreachable.

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