13 references to HasValue
Microsoft.CSharp (6)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
44
Debug.Assert(o.
HasValue
);
151
if (!argument.
HasValue
)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComBinderHelpers.cs (1)
112
if (obj.Value == null && obj.
HasValue
)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (1)
128
Type marshalType = (mo.Value == null && mo.
HasValue
&& !mo.LimitType.IsValueType) ? null : mo.LimitType;
Microsoft\CSharp\RuntimeBinder\ComInterop\DispCallableMetaObject.cs (1)
54
bool holdsNull = value.Value == null && value.
HasValue
;
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchMetaObject.cs (1)
193
bool holdsNull = value.Value == null && value.
HasValue
;
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (3)
1542
If Not target.
HasValue
Then
1545
If value IsNot Nothing AndAlso Not value.
HasValue
Then
1550
If Not a.
HasValue
Then
System.Linq.Expressions (4)
System\Dynamic\BindingRestrictions.cs (1)
78
if (obj.Value == null && obj.
HasValue
)
System\Dynamic\DynamicMetaObject.cs (3)
64
public object? Value =>
HasValue
? _value : null;
78
if (
HasValue
)
290
!idoMetaObject.
HasValue
||