24 if (frame.
Peek() ==
null)
26 return ((
int?)
null).Value;
41 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2077:UnrecognizedReflectionPattern", Justification =
"_defaultValueType is a ValueType. You can always get an uninitialized ValueType.")]
44 if (frame.
Peek() ==
null)
60 object obj2 = frame.
Pop();
73 object obj2 = frame.
Pop();
95 frame.
Push((
obj ==
null) ?
"" :
obj.ToString());
104 frame.
Push(frame.
Pop()?.GetHashCode() ?? 0);
143 case "GetValueOrDefault":
static Exception Unreachable
override int ConsumedStack
override int Run(InterpretedFrame frame)
override int Run(InterpretedFrame frame)
override int Run(InterpretedFrame frame)
override int ConsumedStack
GetValueOrDefault(MethodInfo mi)
readonly Type _defaultValueType
override int Run(InterpretedFrame frame)
override int Run(InterpretedFrame frame)
override int Run(InterpretedFrame frame)
override int Run(InterpretedFrame frame)
static NullableMethodCallInstruction s_hasValue
static Instruction CreateGetValue()
override int ProducedStack
static Instruction Create(string method, int argCount, MethodInfo mi)
static NullableMethodCallInstruction s_equals
override int ConsumedStack
NullableMethodCallInstruction()
static NullableMethodCallInstruction s_toString
static NullableMethodCallInstruction s_getValueOrDefault1
static NullableMethodCallInstruction s_getHashCode
override string InstructionName
static NullableMethodCallInstruction s_value
static readonly object BoxedFalse
static object GetUninitializedObject([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type)