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

◆ Create()

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

Definition at line 179 of file ExclusiveOrInstruction.cs.

180 {
181 return type.GetNonNullableType().GetTypeCode() switch
182 {
183 TypeCode.SByte => s_SByte ?? (s_SByte = new ExclusiveOrSByte()),
184 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new ExclusiveOrInt16()),
185 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new ExclusiveOrInt32()),
186 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new ExclusiveOrInt64()),
187 TypeCode.Byte => s_Byte ?? (s_Byte = new ExclusiveOrByte()),
188 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new ExclusiveOrUInt16()),
189 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new ExclusiveOrUInt32()),
190 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new ExclusiveOrUInt64()),
191 TypeCode.Boolean => s_Boolean ?? (s_Boolean = new ExclusiveOrBoolean()),
192 _ => throw ContractUtils.Unreachable,
193 };
194 }

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

Referenced by System.Linq.Expressions.Interpreter.NotEqualInstruction.Create(), and System.Linq.Expressions.Interpreter.InstructionList.EmitExclusiveOr().