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

◆ Create()

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

Definition at line 188 of file NotInstruction.cs.

189 {
190 return type.GetNonNullableType().GetTypeCode() switch
191 {
192 TypeCode.Boolean => s_Boolean ?? (s_Boolean = new NotBoolean()),
193 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new NotInt64()),
194 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new NotInt32()),
195 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new NotInt16()),
196 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new NotUInt64()),
197 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new NotUInt32()),
198 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new NotUInt16()),
199 TypeCode.Byte => s_Byte ?? (s_Byte = new NotByte()),
200 TypeCode.SByte => s_SByte ?? (s_SByte = new NotSByte()),
201 _ => throw ContractUtils.Unreachable,
202 };
203 }

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

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