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

◆ CanEmitILConstant()

static bool System.Linq.Expressions.Compiler.ILGen.CanEmitILConstant ( Type type)
inlinestaticprivate

Definition at line 307 of file ILGen.cs.

308 {
309 TypeCode typeCode = type.GetNonNullableType().GetTypeCode();
310 if ((uint)(typeCode - 3) <= 12u || typeCode == TypeCode.String)
311 {
312 return true;
313 }
314 return false;
315 }

References System.type.

Referenced by System.Linq.Expressions.Compiler.ILGen.CanEmitConstant().