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

◆ Create()

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

Definition at line 131 of file AddOvfInstruction.cs.

132 {
133 return type.GetNonNullableType().GetTypeCode() switch
134 {
135 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new AddOvfInt16()),
136 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new AddOvfInt32()),
137 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new AddOvfInt64()),
138 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new AddOvfUInt16()),
139 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new AddOvfUInt32()),
140 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new AddOvfUInt64()),
141 _ => AddInstruction.Create(type),
142 };
143 }

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

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