10 references to HasValue
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Operators.cs (9)
154if (!best.HasValue && resultKind != LookupResultKind.Ambiguous) 173if (staticExtensionBest.HasValue && (staticExtensionBest.GetValueOrDefault().HasValue || (originalUserDefinedOperators.IsEmpty && !staticExtensionOriginalUserDefinedOperators.IsEmpty))) 181if (!best.HasValue) 1115if (!best.HasValue) 1400if (!best.HasValue) 1919if (!possiblyBest.HasValue && resultKind != LookupResultKind.Ambiguous) 1925if (extensionBest.HasValue && (extensionBest.GetValueOrDefault().HasValue || (originalUserDefinedOperators.IsEmpty && !extensionOriginalUserDefinedOperators.IsEmpty))) 2024if (possiblyBest.HasValue) 2040resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.Empty;
Binder\Semantics\Operators\BinaryOperatorOverloadResolutionResult.cs (1)
85if (this.Best.HasValue)