10 references to HasValue
Microsoft.CSharp (6)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
44Debug.Assert(o.HasValue); 151if (!argument.HasValue)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComBinderHelpers.cs (1)
112if (obj.Value == null && obj.HasValue)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (1)
128Type marshalType = (mo.Value == null && mo.HasValue && !mo.LimitType.IsValueType) ? null : mo.LimitType;
Microsoft\CSharp\RuntimeBinder\ComInterop\DispCallableMetaObject.cs (1)
54bool holdsNull = value.Value == null && value.HasValue;
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchMetaObject.cs (1)
193bool holdsNull = value.Value == null && value.HasValue;
System.Linq.Expressions (4)
System\Dynamic\BindingRestrictions.cs (1)
78if (obj.Value == null && obj.HasValue)
System\Dynamic\DynamicMetaObject.cs (3)
64public object? Value => HasValue ? _value : null; 78if (HasValue) 290!idoMetaObject.HasValue ||