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

◆ Create()

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

Definition at line 191 of file AndInstruction.cs.

192 {
193 return type.GetNonNullableType().GetTypeCode() switch
194 {
195 TypeCode.SByte => s_SByte ?? (s_SByte = new AndSByte()),
196 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new AndInt16()),
197 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new AndInt32()),
198 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new AndInt64()),
199 TypeCode.Byte => s_Byte ?? (s_Byte = new AndByte()),
200 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new AndUInt16()),
201 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new AndUInt32()),
202 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new AndUInt64()),
203 TypeCode.Boolean => s_Boolean ?? (s_Boolean = new AndBoolean()),
204 _ => throw ContractUtils.Unreachable,
205 };
206 }

References System.Linq.Expressions.Interpreter.AndInstruction.s_Boolean, System.Linq.Expressions.Interpreter.AndInstruction.s_Byte, System.Linq.Expressions.Interpreter.AndInstruction.s_Int16, System.Linq.Expressions.Interpreter.AndInstruction.s_Int32, System.Linq.Expressions.Interpreter.AndInstruction.s_Int64, System.Linq.Expressions.Interpreter.AndInstruction.s_SByte, System.Linq.Expressions.Interpreter.AndInstruction.s_UInt16, System.Linq.Expressions.Interpreter.AndInstruction.s_UInt32, System.Linq.Expressions.Interpreter.AndInstruction.s_UInt64, System.type, and System.Dynamic.Utils.ContractUtils.Unreachable.

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