723 references to HasValue
mscorlib (29)
system\collections\generic\comparer.cs (3)
112if (x.HasValue) { 113if (y.HasValue) return x.value.CompareTo(y.value); 116if (y.HasValue) return -1;
system\collections\generic\equalitycomparer.cs (9)
190if (x.HasValue) { 191if (y.HasValue) return x.value.Equals(y.value); 194if (y.HasValue) return false; 205if (!value.HasValue) { 207if (!array[i].HasValue) return i; 212if (array[i].HasValue && array[i].value.Equals(value.value)) return i; 220if (!value.HasValue) { 222if (!array[i].HasValue) return i; 227if (array[i].HasValue && array[i].value.Equals(value.value)) return i;
system\compatibilityswitches.cs (1)
47return (result.HasValue && result.Value);
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (1)
1045var hasValue = value.HasValue;
system\nullable.cs (6)
111if (n1.HasValue) { 112if (n2.HasValue) return Comparer<T>.Default.Compare(n1.value, n2.value); 115if (n2.HasValue) return -1; 122if (n1.HasValue) { 123if (n2.HasValue) return EqualityComparer<T>.Default.Equals(n1.value, n2.value); 126if (n2.HasValue) return false;
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
357if (propType.HasValue) 451if (propType.HasValue)
system\security\cryptography\rsaoaepkeyexchangedeformatter.cs (1)
63if (!_rsaOverridesDecrypt.HasValue) {
system\security\cryptography\rsaoaepkeyexchangeformatter.cs (1)
89if (!_rsaOverridesEncrypt.HasValue) {
system\security\cryptography\rsapkcs1keyexchangedeformatter.cs (1)
92if (!_rsaOverridesDecrypt.HasValue) {
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (1)
104if (!_rsaOverridesEncrypt.HasValue) {
system\security\cryptography\rsapkcs1signaturedeformatter.cs (1)
96if (!_rsaOverridesVerifyHash.HasValue) {
system\security\cryptography\rsapkcs1signatureformatter.cs (1)
86if (!_rsaOverridesSignHash.HasValue) {
system\stubhelpers.cs (1)
1344if (pManaged.HasValue)
PresentationCore (203)
Core\CSharp\MS\Win32\UnsafeNativeMethodsPenimc.cs (3)
260Invariant.Assert(!_wispManagerKey.HasValue || _wispManagerKey.Value == latestKey); 271if (!_wispManagerLocked && _wispManagerKey.HasValue) 284if (_wispManagerLocked && _wispManagerKey.HasValue)
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
2544if(!_defaultAcquireHwndFocusInMenuMode.HasValue)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (6)
366if (!AppManifestProcessDpiAwareness.HasValue) 468else if (ProcessDpiAwareness.HasValue) 1317if (_sessionId.HasValue && (_sessionId.Value != lparam.ToInt32())) 2229if (ProcessDpiAwareness.HasValue) 2242if (ProcessDpiAwareness.HasValue) 2255if (ProcessDpiAwareness.HasValue)
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
817else if (animation.BeginTime.HasValue)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (59)
133if (_beginTime.HasValue) 504return _currentTime.HasValue ? _currentTime.Value : TimeSpan.Zero; 617if (CanSlip && (IsRoot || _timeline.BeginTime.HasValue)) 689(!InternalNextTickNeededTime.HasValue || 690(_parent.InternalNextTickNeededTime.HasValue && _parent.InternalNextTickNeededTime.Value < InternalNextTickNeededTime.Value))) 1261if (expirationTime.HasValue) 1806if (_rootData.PendingSeekDestination.HasValue && !HasDescendantsWithUnresolvedDuration) 1853if (_beginTime.HasValue) 1859if (_currentIterationBeginTime.HasValue) // One of our descendants has set this flag on us 1867if (_rootData.PendingSpeedRatio.HasValue) 1879Debug.Assert(_beginTime.HasValue); 1884if (_currentIterationBeginTime.HasValue) 1932if (HasDesiredFrameRate && InternalNextTickNeededTime.HasValue) 1961Debug.Assert(_beginTime.HasValue); 1968TimeSpan beginTimeForOffsetComputation = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value 2059if (_currentClockState == ClockState.Filling && repeatBehavior.HasCount && !_currentIterationBeginTime.HasValue) 2101if (_currentIterationBeginTime.HasValue) 2178if (!InternalNextTickNeededTime.HasValue || proposedNextTickTime < InternalNextTickNeededTime.Value) 2190&& expirationTime.HasValue 2208Debug.Assert(_currentIterationBeginTime.HasValue, "ComputeCurrentIterationWithGrow should only be called when _currentIterationBeginTime has a value."); 2236if (_currentClockState == ClockState.Filling && expirationTime.HasValue && _currentIterationBeginTime >= expirationTime) 2255newIteration = _currentIteration.HasValue ? iterationIncrement + (_currentIteration.Value - 1) 2274Debug.Assert(_beginTime.HasValue); 2284else if ( expirationTime.HasValue 2537if (CanGrow && _currentIterationBeginTime.HasValue && _currentIteration.HasValue) 2539Debug.Assert(_beginTime.HasValue); // _currentIterationBeginTime.HasValue implies _beginTime.HasValue 2585if (_beginTime.HasValue 2594if (expirationTime.HasValue) 2605if (!expirationTime.HasValue // If activePeriod extends forever, 2610if (expirationTime.HasValue) 2668if (!_beginTime.HasValue) 2670Debug.Assert(!_currentIterationBeginTime.HasValue, "_currentIterationBeginTime should not have a value when _beginTime has no value."); 2675Debug.Assert(_beginTime.HasValue); 2679if (effectiveDuration.HasValue) 2818Debug.Assert(endOfActivePeriod.HasValue); 2824TimeSpan relativeBeginTime = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value : _beginTime.Value; 2851TimeSpan relativeBeginTime = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value : _beginTime.Value; 2921Debug.Assert(parentTime.HasValue); // If parent isn't stopped, it must have valid time and speed 2922Debug.Assert(parentSpeed.HasValue); 2948Debug.Assert(parentTime.HasValue); // Cannot be true unless parent is stopped 2969Debug.Assert(_beginTime.HasValue); 2970Debug.Assert(parentTime.HasValue); 3018Debug.Assert(_beginTime.HasValue); 3054if (expirationTime.HasValue) 3059(!timeUntilNextBoundary.HasValue || timeUntilExpiration < timeUntilNextBoundary.Value)) 3069if (timeUntilNextBoundary.HasValue) 3197if (_beginTime.HasValue && currentParentTimePT >= _beginTime.Value) 3199TimeSpan relativeBeginTimePT = _currentIterationBeginTime.HasValue ? _currentIterationBeginTime.Value : _beginTime.Value; 3215if (!expirationTimePT.HasValue || currentParentTimePT < expirationTimePT.Value) 3224!syncClockEffectiveDurationST.HasValue || ourSyncTimeST < syncClockEffectiveDurationST) 3258if (!previousSyncParentTimeSPT.HasValue 3274if (_currentIterationBeginTime.HasValue) 3345if (effectiveDurationST.HasValue && 3389if (_currentIterationBeginTime.HasValue) 3608if (desiredFrameRate.HasValue) 4008Debug.Assert(syncClock.IsRoot || syncClock._timeline.BeginTime.HasValue); // Only roots may later validate their _beginTime 4047if (_syncClockEffectiveDuration.HasValue) // If the sync clock has a finite duration 4097Debug.Assert(_syncClockBeginTime.HasValue); // This should never be queried on a root without beginTime
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (8)
147&& child._timeline.BeginTime.HasValue) 205if (currentDesiredFrameRate.HasValue) 276if(!InternalNextTickNeededTime.HasValue || 277(enumerator.Current.InternalNextTickNeededTime.HasValue && 284if (InternalNextTickNeededTime.HasValue && 285(!previousTickNeededTime.HasValue || previousTickNeededTime > InternalNextTickNeededTime)) 321if (!InternalNextTickNeededTime.HasValue || 322(_children[c].InternalNextTickNeededTime.HasValue && _children[c].InternalNextTickNeededTime < InternalNextTickNeededTime))
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16Animation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\Int32Animation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\Int64Animation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (11)
1163Debug.Assert(!endTime.HasValue || beginTime <= endTime); // Ensure legitimate begin/end clipping parameters 1166Debug.Assert(!endTime.HasValue || endTime >= _nodeTime[0]); // EndTime must come at or after our first node (it can be infinite) 1168Debug.Assert(endTime.HasValue || fillDuration == TimeSpan.Zero); // Either endTime is finite, or it's infinite hence we cannot have any fill zone 1169Debug.Assert(!period.HasTimeSpan || period.TimeSpan > TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime 1179|| (endTime.HasValue && fillDuration.HasTimeSpan // ...the active and fill periods don't stretch forever, and... 1186if (endTime.HasValue && beginTime == endTime) // Degenerate case when our active period is a single point; project only the point 1204if (endTime.HasValue) 1271while(_current < _count && (!endTime.HasValue || CurrentNodeTime < endTime)) // Copy the main set of segments, transforming them 1289Debug.Assert(endTime.HasValue && CurrentNodeTime >= endTime.Value); 1373if (includeMaxPoint && activeDuration.HasValue && CurrentNodeTime == activeDuration) 1530if (includeMaxPoint && activeDuration.HasValue && NextNodeTime == activeDuration) // Exceptional end case: we are exactly at the last point
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (1)
378return (!desiredFrameRate.HasValue || desiredFrameRate.Value > 0);
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
783if (nextTickNeededTime.HasValue)
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (11)
503if (!list[position].HasValue) 530if (!_samplerData[position].HasValue) 544if (oldSampler.HasValue) 651if (v.HasValue) 668if (v.HasValue) 685if (v.HasValue) 706if (ssn.HasValue) 728if (ssn.HasValue) 770if (v.HasValue) 793if (ssn.HasValue) 833if (ssn.HasValue)
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (2)
355if (dirtyRect.HasValue) 388bool useDirtyRect = dirtyRect.HasValue;
Core\CSharp\System\Windows\Media\MediaClock.cs (2)
140double currentSpeedValue = currentSpeedProperty.HasValue ? currentSpeedProperty.Value : 0; 143TimeSpan currentTimeValue = currentTimeProperty.HasValue ? currentTimeProperty.Value : TimeSpan.Zero;
Core\CSharp\System\Windows\Media\Visual.cs (4)
615if (scrollClip.HasValue) 1148if (scrollClip.HasValue) 2127if (scrollClip.HasValue && !scrollClip.Value.Contains(hitPoint)) 2328if (scrollClip.HasValue)
Graphics\include\exports.cs (2)
2016command.IsEnabled = (uint) (clip.HasValue ? 1 : 0); 2018if (clip.HasValue)
Shared\MS\Internal\SecurityHelper.cs (1)
1091if(!_appDomainGrantedUnrestrictedUIPermission.HasValue)
PresentationFramework (107)
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (1)
188if (_cachedIsEmpty.HasValue)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
87if (!_isDBNullValidForUpdate.HasValue)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1604if (selectionRenderRange.HasValue)
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
515if ( _activeSelectionHitResult.HasValue )
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
191if (owner.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(owner.SelectedDate.Value, owner.DisplayDateInternal) == 0) 539if( !nextDate.HasValue || (startAfterDatePeer != null && nextDate <= startAfterDatePeer.Date) ) 562if (nextDate.HasValue) 596if (!OwningCalendar.SelectedDates.MaximumDate.HasValue || OwningCalendar.SelectedDates.MaximumDate <= startDate) 601if (OwningCalendar.SelectedDates.MinimumDate.HasValue && startDate < OwningCalendar.SelectedDates.MinimumDate)
src\Framework\System\Windows\Controls\BooleanToVisibilityConverter.cs (1)
44bValue = tmp.HasValue ? tmp.Value : false;
src\Framework\System\Windows\Controls\Calendar.cs (18)
226if (c.DisplayDateStart.HasValue && (date < c.DisplayDateStart.Value)) 230else if (c.DisplayDateEnd.HasValue && (date > c.DisplayDateEnd.Value)) 282if (date.HasValue) 284if (c.DisplayDateStart.HasValue && (date.Value < c.DisplayDateStart.Value)) 290if (maxSelectedDate.HasValue && (date.Value < maxSelectedDate.Value)) 344if (date.HasValue) 347if (minSelectedDate.HasValue && (date.Value > minSelectedDate.Value)) 556if (!addedDate.HasValue) 562if (addedDate.HasValue && !(c.SelectedDates.Count > 0 && c.SelectedDates[0] == addedDate.Value)) 572if (addedDate.HasValue) 953if (newDate.HasValue) 998if (date.HasValue) 1033if (nextDate.HasValue) 1042if (nextDate.HasValue) 1194if (selectedMonth.HasValue) 1207if (selectedYear.HasValue) 1239if (c.SelectedDate.HasValue && DateTimeHelper.CompareYearMonth(c.SelectedDate.Value, c.DisplayDateInternal) == 0) 1597if (!this.HoverStart.HasValue)
src\Framework\System\Windows\Controls\DataGrid.cs (1)
7202if (currentSortDirection.HasValue &&
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
1074if (!_averageColumnWidth.HasValue)
src\Framework\System\Windows\Controls\DatePicker.cs (8)
441if (dp.SelectedDate.HasValue) 460if (addedDate.HasValue) 465if (removedDate.HasValue) 476string addedDateString = addedDate.HasValue ? dp.DateTimeToString(addedDate.Value) : ""; 477string removedDateString = removedDate.HasValue ? dp.DateTimeToString(removedDate.Value) : ""; 968if (e.AddedItems.Count > 0 && this.SelectedDate.HasValue && DateTime.Compare((DateTime)e.AddedItems[0], this.SelectedDate.Value) != 0) 980if (!this.SelectedDate.HasValue) 1208if (this.SelectedDate.HasValue)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (6)
62if (target.HasValue) 198if (date.HasValue && format != null) 228if (date.HasValue && format != null) 241if (date.HasValue && format != null) 254if (date.HasValue && format != null) 271if (date.HasValue && format != null)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
1319if(_findButton != null && _findButton.IsChecked.HasValue && _findButton.IsChecked.Value != enable)
src\Framework\System\Windows\Controls\Grid.cs (2)
1948if (!(chooseMin.HasValue)) 2561if (!(chooseMin.HasValue))
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
1124if (!isLikely.HasValue)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (9)
275this.Owner.HoverEnd.HasValue) 527if (this.Owner.HoverStart.HasValue) 609if (shift && lastDate.HasValue) 715if (!this.Owner.HoverStart.HasValue) 737if (!this.Owner.HoverStart.HasValue) 844if (this.Owner.HoverStart.HasValue) 1083if (dateToAdd.HasValue) 1152if (owner.HoverStart.HasValue && owner.HoverEnd.HasValue)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
3729if (HwndTarget.IsProcessPerMonitorDpiAware.HasValue) 3781if (screenOrigin.HasValue)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
289if (isSynchronizedWithCurrentItem.HasValue)
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (3)
157SetValue(IsCheckedProperty, value.HasValue ? BooleanBoxes.Box(value.Value) : null); 326return SR.Get(SRID.ToStringFormatString_ToggleButton, typeText, contentText, isChecked.HasValue ? isChecked.Value.ToString() : "null"); 351isChecked = IsChecked.HasValue; // HasValue returns true if IsChecked==false
src\Framework\System\Windows\Controls\SelectedDatesCollection.cs (8)
56if (!_minimumDate.HasValue) 83if (!_maximumDate.HasValue) 180if (index == 0 && !(this._owner.SelectedDate.HasValue && DateTime.Compare(this._owner.SelectedDate.Value, item) == 0)) 291if (index == 0 && !(this._owner.SelectedDate.HasValue && DateTime.Compare(this._owner.SelectedDate.Value, item) == 0)) 391if (!this._owner.SelectedDate.HasValue || DateTimeHelper.CompareDays(this._owner.SelectedDate.Value, date) != 0) 480if ((!_maximumDate.HasValue) || (date > _maximumDate.Value)) 485if ((!_minimumDate.HasValue) || (date < _minimumDate.Value)) 510while (rangeStart.HasValue && DateTime.Compare(end, rangeStart.Value) != -increment);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (14)
7759if (AreContainersUniformlySized.HasValue) 7828if (UniformOrAverageContainerSize.HasValue) 9697if (lastPagePixelSize.HasValue && !lastPageSafeOffset.HasValue && 9812if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.X)) 9840if (!lastPageSafeOffset.HasValue || computedViewportOffset.X < (double)lastPageSafeOffset) 10029if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.Y)) 10057if (!lastPageSafeOffset.HasValue || computedViewportOffset.Y < (double)lastPageSafeOffset) 10526lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.X, (double)lastPageSafeOffset) : computedViewportOffset.X; 10628if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.X)) 10657lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.Y, (double)lastPageSafeOffset) : computedViewportOffset.Y; 10759if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.Y)) 12740writer.Write(_uniformOrAverageContainerSize.HasValue ? (double)_uniformOrAverageContainerSize : -1.0d); 12741writer.Write(_uniformOrAverageContainerPixelSize.HasValue ? (double)_uniformOrAverageContainerPixelSize : -1.0d);
src\Framework\System\Windows\Data\BindingListCollectionView.cs (1)
2019if (!_itemsRaisePropertyChanged.HasValue)
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (1)
229if (dependencyObject != null && stack.CurrentFrame.XmlSpace.HasValue)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (6)
372if (From.HasValue) 374if (To.HasValue) 381else if (By.HasValue) 395else if (To.HasValue) 401else if (By.HasValue) 427if (typedValue.HasValue)
src\Framework\System\Windows\Media\Animation\Storyboard.cs (4)
1315if(currentGlobalSpeed.HasValue) 1364if(currentIteration.HasValue) 1412if(currentProgress.HasValue) 1500if(currentTime.HasValue)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
1169if (wp.HasValue)
src\Framework\System\Windows\Standard\NativeMethods.cs (1)
1448if (!_hwnd.HasValue || _hwnd.Value == IntPtr.Zero)
src\Framework\System\Windows\VisualStateManager.cs (6)
504if (targetColor.HasValue) 513if (targetDouble.HasValue) 523if (targetPoint.HasValue) 657return ca.From.HasValue ? ca.From : ca.To; 680return da.From.HasValue ? da.From : da.To; 703return pa.From.HasValue ? pa.From : pa.To;
src\Framework\System\Windows\Window.cs (2)
2612if (topLeftPointHelper.ScreenTopLeft.HasValue) 8381if (HwndTarget.IsProcessPerMonitorDpiAware.HasValue)
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapter.cs (1)
336if (app.PendingAction.RequestsBlocked.HasValue)
System (3)
net\System\Net\ServicePoint.cs (1)
1316if (ServicePointManager.ReusePortSupported.HasValue && !ServicePointManager.ReusePortSupported.Value) {
net\System\Net\WebSockets\ClientWebSocket.cs (1)
558if (!buffer.HasValue)
sys\System\IO\compression\DeflateStream.cs (1)
149if (compressionLevel.HasValue)
System.Activities (11)
System\Activities\Activity.cs (1)
133if (this.isSubtreeEmpty.HasValue)
System\Activities\DynamicUpdate\DynamicUpdateMapQuery.cs (2)
126return oldIndex.HasValue ? oldOwner.RuntimeVariables[oldIndex.Value] : null; 179return newIndex.HasValue ? newOwner.RuntimeVariables[newIndex.Value] : null;
System\Activities\DynamicUpdate\UpdateMapMetadata.cs (1)
127return this.finalizer.AllowUpdateInsideCurrentActivity.HasValue;
System\Activities\Runtime\LocationEnvironment.cs (2)
774if ((forImplementation && map.GetNewPrivateVariableIndex(i).HasValue) || (!forImplementation && map.GetNewVariableIndex(i).HasValue))
System\Activities\WorkflowApplication.cs (3)
651if (localInstanceState.HasValue && ShouldRaiseComplete(localInstanceState.Value)) 695shouldRunNow = (localInstanceState.HasValue && localInstanceState == WorkflowInstanceState.Runnable && localApplicationState == WorkflowApplicationState.Runnable); 697localInstanceState.HasValue && localInstanceState == WorkflowInstanceState.Idle &&
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
120if (!isCS.HasValue) 132if (!isVB.HasValue)
System.Activities.Core.Presentation (9)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (2)
439if (!this.isRightToLeft.HasValue) 1481else if (shapeAnchorPoint.HasValue)
System\Activities\Core\Presentation\NotConverter.cs (1)
41if (nbValue.HasValue)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
805if (!this.isRightToLeft.HasValue) 2259else if (shapeAnchorPoint.HasValue)
System\ServiceModel\Activities\Presentation\CorrelatesOnValueEditor.cs (1)
81if (dialogResult.HasValue && dialogResult.Value)
System\ServiceModel\Activities\Presentation\CorrelationInitializerValueEditor.cs (1)
78if (dialogResult.HasValue && dialogResult.Value)
System\ServiceModel\Activities\Presentation\InitializeCorrelationDesigner.xaml.cs (1)
139if ((dialogResult.HasValue) && (dialogResult.Value))
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
63if (dialogResult.HasValue && dialogResult.Value)
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\PersistenceTask.cs (1)
84if (taskIntervalOverride.HasValue)
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (2)
183if (value.HasValue) 342if (isAnnotationDocked.HasValue)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ValueConverters.cs (1)
46if (nbValue.HasValue)
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyInfo.cs (1)
24get { return this.isVisibleToModelItem.HasValue ? this.isVisibleToModelItem.Value : this.isBrowsable; }
System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (1)
47if (this.hasEffectiveChanges.HasValue)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
510int id = maxId.HasValue ? maxId.Value + 1 : 1;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
338if (!this.isDesignMode.HasValue)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (2)
623if (dialogResult.HasValue && dialogResult.Value) 631if (dialogResult.HasValue && dialogResult.Value)
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
116return result.HasValue && result.Value;
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
111if (matchingMappingRecord.HasValue)
System.ComponentModel.DataAnnotations (3)
DataAnnotations\DisplayAttribute.cs (3)
233if (!this._autoGenerateField.HasValue) { 259if (!this._autoGenerateFilter.HasValue) { 285if (!this._order.HasValue) {
System.Core (20)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
123if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
120if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
124if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
124if (current.HasValue)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
124if (current.HasValue)
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (1)
136Contract.Assert(m_settings.DegreeOfParallelism.HasValue);
System\Linq\Parallel\QueryOperators\QueryOperator.cs (2)
187Contract.Assert(querySettings.DegreeOfParallelism.HasValue); 188Contract.Assert(querySettings.ExecutionMode.HasValue);
System\Linq\Parallel\QueryOperators\QuerySettings.cs (4)
134int? dop = this.DegreeOfParallelism.HasValue ? this.DegreeOfParallelism : settings2.DegreeOfParallelism; 136ParallelExecutionMode? executionMode = this.ExecutionMode.HasValue ? this.ExecutionMode : settings2.ExecutionMode; 137ParallelMergeOptions? mergeOptions = this.MergeOptions.HasValue ? this.MergeOptions : settings2.MergeOptions; 210Contract.Assert(settings.DegreeOfParallelism.HasValue);
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (1)
65Contract.Assert(settings.DegreeOfParallelism.HasValue);
System\Security\Cryptography\CngKey.cs (2)
804if (creationParameters.ExportPolicy.HasValue) { 811if (creationParameters.KeyUsage.HasValue) {
System\Security\Cryptography\CngProperty.cs (1)
129if (!m_hashCode.HasValue) {
System\Security\Cryptography\Xml\ManifestSignedXml.cs (4)
61if (!upper.HasValue || !lower.HasValue) { 276if (!upper.HasValue || !lower.HasValue) {
System.Data (30)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (2)
183if (value.HasValue) 342if (isAnnotationDocked.HasValue)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\ValueConverters.cs (1)
46if (nbValue.HasValue)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyInfo.cs (1)
24get { return this.isVisibleToModelItem.HasValue ? this.isVisibleToModelItem.Value : this.isBrowsable; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (1)
47if (this.hasEffectiveChanges.HasValue)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
510int id = maxId.HasValue ? maxId.Value + 1 : 1;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
338if (!this.isDesignMode.HasValue)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (2)
623if (dialogResult.HasValue && dialogResult.Value) 631if (dialogResult.HasValue && dialogResult.Value)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
116return result.HasValue && result.Value;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
111if (matchingMappingRecord.HasValue)
fx\src\data\System\Data\Common\DbDataAdapter.cs (2)
1190if ((null == batchCommands[bc].Errors) && batchCommands[bc].RecordsAffected.HasValue) { 1386if ((null == batchCommands[i].Errors) && batchCommands[i].RecordsAffected.HasValue && (0 != batchCommands[i].RecordsAffected.Value)) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
518if(!info._dbtype.HasValue) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
6375int isSqlExceptionFlag = sqlExceptionNumber.HasValue ? 2 : 0;
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
282return affected.HasValue;
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
492if (setEnlistValue.HasValue) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
3926if (columnIndex.HasValue) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
1398Debug.Assert(!isSqlType.HasValue || (isSqlType.Value == (value is INullable)), "isSqlType is incorrect"); 1399Debug.Assert(!isDataFeed.HasValue || (isDataFeed.Value == (value is DataFeed)), "isDataFeed is incorrect"); 1400Debug.Assert(!isNull.HasValue || (isNull.Value == ADP.IsNull(value)), "isNull is incorrect");
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (2)
240Debug.Assert(sqlTceCipherInfoEntry.HasValue, "sqlTceCipherInfoEntry should not be null in DecryptSymmetricKey."); 265Debug.Assert(encryptionkeyInfoChosen.HasValue, "encryptionkeyInfoChosen must have a value.");
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
3580if (cipherTable.HasValue) { 3644col.cipherMD = new SqlCipherMetadata(cipherTable.HasValue ? (SqlTceCipherInfoEntry?)cipherTable.Value[index] : null, 4352if (cipherTable.HasValue && !TryProcessTceCryptoMetadata (stateObj, col, cipherTable.Value, columnEncryptionSetting, isReturnValue: false)) { 9201if (!metadataCollection.cekTable.HasValue ||
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (3)
707Debug.Assert(!_sqlTceCipherInfoEntry.HasValue, "We can only set the EncryptionInfo once."); 770Debug.Assert(!_sqlEncryptionKeyInfo.HasValue, "_sqlEncryptionKeyInfo should not be set more than once."); 964Debug.Assert(cipherMetadata.EncryptionKeyInfo.HasValue, "cipherMetadata.EncryptionKeyInfo.HasValue should be true.");
System.Data.DataSetExtensions (2)
System\Data\DataTableExtensions.cs (2)
121if (options.HasValue) { 196if (options.HasValue)
System.Data.Entity (107)
System\Data\Common\CommandTrees\AbstractExpressions.cs (11)
424if (!value.HasValue) 443if (!value.HasValue) 462if (!value.HasValue) 481if (!value.HasValue) 500if (!value.HasValue) 519if (!value.HasValue) 576if (!value.HasValue) 595if (!value.HasValue) 614if (!value.HasValue) 633if (!value.HasValue) 667if (!value.HasValue)
System\Data\Common\EntitySql\AST\DotExpr.cs (1)
59if (_isMultipartIdentifierComputed.HasValue)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
2460if (facetDescription.MaxValue.HasValue && byteValue > facetDescription.MaxValue.Value) 2465if (facetDescription.MinValue.HasValue && byteValue < facetDescription.MinValue.Value)
System\Data\Common\EntityUtil.cs (14)
44return operand.HasValue ? !operand.Value : (bool?)null; 59if (left.HasValue && right.HasValue) { 62else if (!left.HasValue && !right.HasValue) { 65else if (left.HasValue) { 91if (left.HasValue && right.HasValue) { 94else if (!left.HasValue && !right.HasValue) { 97else if (left.HasValue) { 1675if (!cardinality.HasValue) { // null indicates * (unlimited) 2081if (!useFx40CompatMode.HasValue) 2113if (!useFx40CompatMode.HasValue)
System\Data\EntityClient\DbParameterHelper.cs (5)
85bool result = this._isNullable.HasValue ? this._isNullable.Value : true; 105int size = _size.HasValue ? _size.Value : 0; 112if (!_size.HasValue || _size.Value != value) { 128if (_size.HasValue) { 135return (_size.HasValue && _size.Value != 0);
System\Data\EntityClient\EntityParameter.cs (10)
156if (!this._dbType.HasValue) 222byte result = this._precision.HasValue ? this._precision.Value : (byte)0; 239byte result = this._scale.HasValue ? this._scale.Value : (byte)0; 264if (!this._dbType.HasValue && this._edmType == null) 308return this._dbType.HasValue; 330return this._isNullable.HasValue; 341return this._precision.HasValue; 352return this._scale.HasValue; 363return this._size.HasValue; 474if (this._edmType != null && this._dbType.HasValue)
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (1)
148if (_isComposable && _isSideEffecting.HasValue && _isSideEffecting.Value == true)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (2)
165if (!enumMember.Value.HasValue) 229Debug.Assert(!_enumMembers.Any(m => !m.Value.HasValue), "member values should have been fixed up already.");
System\Data\EntityModel\SchemaObjectModel\StructuredType.cs (1)
316if (_baseTypeResolveResult.HasValue)
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (2)
67if (_nullable.HasValue) 414else if (precision.HasValue)
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
397if (condition.IsNull.HasValue)
System\Data\Mapping\StorageConditionPropertyMapping.cs (3)
65Debug.Assert((isNull.HasValue) || (value != null), "Both Value and IsNull can not be specified on Condition Mapping"); 66Debug.Assert(!(isNull.HasValue) || (value == null), "Either Value or IsNull has to be specified on Condition Mapping"); 151if (this.IsNull.HasValue) {
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
105if (translator.CommandTimeout.HasValue)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (1)
374Debug.Assert(entityKeyOrdinal.HasValue ==
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
215if (translator.CommandTimeout.HasValue)
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (5)
168if (booleanValue.HasValue) 266if ((leftResult.HasValue && !leftResult.Value && PreservedAndKnown(left)) || 267(rightResult.HasValue && !rightResult.Value && PreservedAndKnown(right))) 294if ((leftResult.HasValue && leftResult.Value && PreservedAndKnown(left)) || 295(rightResult.HasValue && rightResult.Value && PreservedAndKnown(right)))
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (3)
197int maximumCount = maximumCountDeclared.HasValue ? maximumCountDeclared.Value : count; // negative value 224if (maximumCount.HasValue) 238if (violationType.HasValue)
System\Data\Mapping\Update\Internal\ViewLoader.cs (1)
364conditionPropertyMapping.IsNull.HasValue)
System\Data\Mapping\ViewGeneration\CellCreator.cs (1)
476if (conditionMap.IsNull.HasValue)
System\Data\Metadata\Edm\EdmFunction.cs (8)
42if (payload.IsAggregate.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.Aggregate, payload.IsAggregate.Value); 43if (payload.IsBuiltIn.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.BuiltIn, payload.IsBuiltIn.Value); 44if (payload.IsNiladic.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.NiladicFunction, payload.IsNiladic.Value); 45if (payload.IsComposable.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.IsComposable, payload.IsComposable.Value); 46if (payload.IsFromProviderManifest.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.IsFromProviderManifest, payload.IsFromProviderManifest.Value); 47if (payload.IsCachedStoreFunction.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.IsCachedStoreFunction, payload.IsCachedStoreFunction.Value); 48if (payload.IsFunctionImport.HasValue) SetFunctionAttribute(ref _functionAttributes, FunctionAttributes.IsFunctionImport, payload.IsFunctionImport.Value); 50if (payload.ParameterTypeSemantics.HasValue)
System\Data\Metadata\Edm\FacetDescription.cs (9)
77if (minValue.HasValue || maxValue.HasValue) 81if (minValue.HasValue && maxValue.HasValue) 322if ((_minValue.HasValue != _maxValue.HasValue) || 323(_minValue.HasValue && _minValue.Value != _maxValue.Value)) 330else if (!_minValue.HasValue || !_maxValue.HasValue)
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
157if (primitiveTypeKind.HasValue)
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
105if((explicitMergeOption.HasValue &&
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
259if (!this._mergeOption.HasValue)
System\Data\Objects\EntityEntry.cs (1)
3715if (!isOneToMany.HasValue)
System\Data\Objects\Internal\ObjectQueryExecutionPlan.cs (1)
170if (context.CommandTimeout.HasValue)
System\Data\Objects\Internal\ObjectQueryState.cs (3)
158if (_userMergeOption.HasValue) 280if (preferred.HasValue) 298if (preferred.HasValue)
System\Data\Objects\ObjectContext.cs (3)
377if (value.HasValue && value < 0) 2663if (this.CommandTimeout.HasValue) 3201if (this.CommandTimeout.HasValue)
System\Data\Objects\ObjectQuery_TResultType.cs (1)
131if (this.QueryState.UserSpecifiedMergeOption.HasValue)
System\Data\Query\PlanCompiler\JoinElimination.cs (2)
140if (!m_isSqlCe.HasValue) 151return m_isSqlCe.HasValue ? m_isSqlCe.Value : false;
System\Data\Spatial\DbGeography.cs (1)
479if (!distance.HasValue)
System\Data\Spatial\DbGeometry.cs (1)
574if (!distance.HasValue)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
1048if (srid.HasValue)
System\Data\SqlClient\SqlProviderServices.cs (5)
162if(!size.HasValue) 356if (size.HasValue) 387if (precision.HasValue && (isOutParam || result.Precision != precision.Value)) { 390if (scale.HasValue && (isOutParam || result.Scale != scale.Value)) { 1051if (commandTimeout.HasValue)
System\Data\SqlClient\SqlSpatialServices.cs (1)
220if (!srid.HasValue)
System\Data\SqlClient\SqlTypesAssembly.cs (1)
474if (srid.HasValue)
System.Data.Linq (52)
ChangeConflicts.cs (1)
211if (this.isDeleted.HasValue) {
SqlClient\Common\InheritanceRules.cs (1)
75if (providerType.Size.HasValue && s.Length!=providerType.Size) {
SqlClient\SqlMethods.cs (36)
33if (startDate.HasValue && endDate.HasValue) { 62if (startDate.HasValue && endDate.HasValue) 91if (startDate.HasValue && endDate.HasValue) { 120if (startDate.HasValue && endDate.HasValue) 150if (startDate.HasValue && endDate.HasValue) { 178if (startDate.HasValue && endDate.HasValue) 209if (startDate.HasValue && endDate.HasValue) { 237if (startDate.HasValue && endDate.HasValue) 268if (startDate.HasValue && endDate.HasValue) { 297if (startDate.HasValue && endDate.HasValue) 328if (startDate.HasValue && endDate.HasValue) { 357if (startDate.HasValue && endDate.HasValue) 388if (startDate.HasValue && endDate.HasValue) { 417if (startDate.HasValue && endDate.HasValue) 451if (startDate.HasValue && endDate.HasValue) 483if (startDate.HasValue && endDate.HasValue) 517if (startDate.HasValue && endDate.HasValue) 548if (startDate.HasValue && endDate.HasValue)
SqlClient\SqlTypeSystemProvider.cs (13)
497if ((size.HasValue && size != 0) && (formatFlags & QueryFormatOptions.SuppressSize) == 0) { 528return this.size.HasValue || this.IsLargeType; 954if (size.HasValue) 1003if (determinedSize.HasValue) { 1012if (declaredType.Size.HasValue && parameter.Size <= declaredType.Size || declaredType.IsLargeType) { 1119if ((!leftType.IsLargeType && leftType.Size.HasValue) && 1120(!rightType.IsLargeType && rightType.Size.HasValue)) 1358if (sqlTypeA.Size.HasValue && sqlTypeB.Size.HasValue) { 1362if (sqlTypeB.Size.HasValue && sqlTypeB.Size.Value == LargeTypeSizeIndicator 1363|| sqlTypeA.Size.HasValue && sqlTypeA.Size.Value == LargeTypeSizeIndicator) { 1487if (parameterSize.HasValue) { 1494if (largestDeclarableSize.HasValue && largestDeclarableSize.Value >= parameter.Size)
Types.cs (1)
823if (!hashCode.HasValue) {
System.Data.Services (20)
System\Data\Services\DataServiceOperationContext.cs (1)
81if (!this.isBatchRequest.HasValue)
System\Data\Services\Providers\BasicExpandProvider.cs (5)
303if (skipCount.HasValue) 310if (takeCount.HasValue) 1099(this.Node.Filter != null || (this.Node.MaxResultsExpected.HasValue && !this.singleResult)); 1366if (this.Node.MaxResultsExpected.HasValue && this.Node.ResourceSetWrapper.PageSize == 0) 1764Debug.Assert(this.Node.MaxResultsExpected.HasValue, "Paging is on for this node, so it should have the MaxResultsExpected set as well.");
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (4)
157string.IsNullOrEmpty(etagFromHeader) && !checkETagForEquality.HasValue || !string.IsNullOrEmpty(etagFromHeader) && checkETagForEquality.HasValue, 220string.IsNullOrEmpty(etag) && !checkETagForEquality.HasValue || !string.IsNullOrEmpty(etag) && checkETagForEquality.HasValue,
System\Data\Services\Providers\ExpandedProjectionNode.cs (1)
251return this.Filter != null || this.MaxResultsExpected.HasValue;
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
269rootNode.SkipCount.HasValue || rootNode.TakeCount.HasValue || rootNode.ProjectionsSpecified)
System\Data\Services\Providers\ResourceContainerWrapper.cs (1)
217if (!this.epmIsV1Compatible.HasValue)
System\Data\Services\RequestQueryProcessor.cs (4)
1041if (this.IsStandardPaged || this.topCount.HasValue || this.skipCount.HasValue) 1286if (this.skipCount.HasValue) 1296if (this.topCount.HasValue)
System\Data\Services\Serializers\Serializer.cs (2)
433if (topQueryParameter.HasValue) 875if (topQueryParameter.HasValue)
System.Data.Services.Client (5)
System\Data\Services\Client\AtomEntry.cs (1)
85Debug.Assert(value.HasValue, "value.HasValue -- callers shouldn't set the value to unknown");
System\Data\Services\Client\AtomParser.cs (3)
551if (targetEntry.MediaLinkEntry.HasValue && targetEntry.MediaLinkEntry.Value) 945if (targetEntry.MediaLinkEntry.HasValue && !targetEntry.MediaLinkEntry.Value) 988if (this.feed.Count.HasValue)
System\Data\Services\Client\MaterializeFromAtom.cs (1)
479this.materializer.CurrentFeed.Count.HasValue)
System.Data.Services.Design (3)
System\Data\EntityModel\DataServiceBuildProvider.cs (3)
495if (!isSentinalTypePresent && useCollectionParamValue.HasValue && useCollectionParamValue == true) 500version = versionParamValue.HasValue ? versionParamValue.Value : DataServiceCodeVersion.V1; 501useDataServiceCollection = useCollectionParamValue.HasValue ? useCollectionParamValue.Value : false;
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
1117if (!isBestImagePng.HasValue) {
System.IdentityModel (17)
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
2440if (indexedEP.IsDefault.HasValue)
System\IdentityModel\Protocols\WSTrust\WSTrustMessage.cs (1)
285if (value.HasValue && value.Value < 0)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
763if (rst.KeySizeInBits.HasValue) 1750if (rstr.KeySizeInBits.HasValue)
System\IdentityModel\SecurityTokenService.cs (5)
390if (request.KeySizeInBits.HasValue) 469if (requestLifetime.Created.HasValue) 478if (requestLifetime.Expires.HasValue) 1077if (StringComparer.Ordinal.Equals(request.KeyType, KeyTypes.Bearer) && request.KeySizeInBits.HasValue && (request.KeySizeInBits.Value != 0)) 1095if (request.KeySizeInBits.HasValue)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1721if (assertion.Conditions != null && assertion.Conditions.NotOnOrAfter.HasValue) 1729assertion.Subject.SubjectConfirmations[0].SubjectConfirmationData.NotOnOrAfter.HasValue)
System\IdentityModel\Tokens\SessionSecurityToken.cs (4)
242if (validFrom.HasValue) 251if (validTo.HasValue) 275if (!keyEffectiveTime.HasValue) 280if (!keyExpirationTime.HasValue)
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
261DateTime validFrom = (tokenDescriptor.Lifetime.Created.HasValue) ? (DateTime)tokenDescriptor.Lifetime.Created : DateTime.UtcNow; 262DateTime validTo = (tokenDescriptor.Lifetime.Expires.HasValue) ? (DateTime)tokenDescriptor.Lifetime.Expires : DateTime.UtcNow + SessionSecurityTokenHandler.DefaultTokenLifetime;
System.Runtime.Serialization (1)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
452return value.HasValue;
System.Security (4)
system\security\cryptography\xml\utils.cs (4)
182if (xmlDsigSearchDepth.HasValue) { 201if (maxCharactersFromEntities.HasValue) { 243if (s_allowAmbiguousReferenceTarget.HasValue) 264if (s_allowDetachedSignature.HasValue)
System.ServiceModel (27)
System\ServiceModel\Activation\AspNetEnvironment.cs (2)
339if (!AspNetEnvironment.isApplicationDomainHosted.HasValue) 343if (!AspNetEnvironment.isApplicationDomainHosted.HasValue)
System\ServiceModel\Channels\CreateSequenceResponse.cs (1)
152if (this.expires.HasValue)
System\ServiceModel\Channels\HttpRequestMessageProperty.cs (2)
323if (!contentLength.HasValue || 324(contentLength.HasValue && contentLength.Value > 0))
System\ServiceModel\Channels\HttpResponseMessageProperty.cs (2)
342if (!contentLength.HasValue || 343(contentLength.HasValue && contentLength.Value > 0))
System\ServiceModel\Channels\MsmqMessageProperty.cs (1)
40if (!deliveryFailure.HasValue)
System\ServiceModel\Channels\MsmqVerifier.cs (1)
162if (security.MsmqProtectionLevel == ProtectionLevel.EncryptAndSign && useActiveDirectory.HasValue && !useActiveDirectory.Value)
System\ServiceModel\Configuration\SecurityElementBase.cs (3)
681if (requireDerivedKeys.HasValue && requireDerivedKeys.Value != t.RequireDerivedKeys) 696if ( requireDerivedKeys.HasValue && requireDerivedKeys.Value != ssbe.ProtectionTokenParameters.RequireDerivedKeys ) 718if ( requireDerivedKeys.HasValue && requireDerivedKeys.Value != asbe.InitiatorTokenParameters.RequireDerivedKeys )
System\ServiceModel\Description\ConfigLoader.cs (1)
255if (!isPT.HasValue)
System\ServiceModel\MsmqException.cs (2)
68if (this.faultSender.HasValue && this.faultReceiver.HasValue)
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelFactory.cs (1)
140if (property.BodyType.HasValue)
System\ServiceModel\MsmqIntegration\MsmqIntegrationMessageProperty.cs (3)
172if (priority.HasValue && (priority.Value < MessagePriority.Lowest || priority.Value > MessagePriority.Highest)) 178if (timeout.HasValue && timeout.Value < TimeSpan.Zero) 184if (timeout.HasValue && TimeoutHelper.IsTooLarge(timeout.Value))
System\ServiceModel\MsmqIntegration\MsmqIntegrationOutputChannel.cs (5)
214if (property.AcknowledgeType.HasValue) 220if (property.AppSpecific.HasValue) 223if (property.BodyType.HasValue) 235if (property.Priority.HasValue) 241if (property.TimeToReachQueue.HasValue)
System\ServiceModel\PeerResolvers\PeerDefaultCustomResolverClient.cs (1)
48if (this.shareReferrals.HasValue)
System\ServiceModel\Security\SecurityUtils.cs (1)
89if (p.HasValue)
System\ServiceModel\Security\WSTrustChannel.cs (1)
608if (response.KeySizeInBits.HasValue)
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
539if (!this.isWindowsAuthentication.HasValue)
System.ServiceModel.Activities (12)
System\ServiceModel\Activities\ContractInferenceHelper.cs (5)
120if (protectionLevel.HasValue) 148if (protectionLevel.HasValue) 223if (protectionLevel.HasValue) 267if (send.ProtectionLevel.HasValue) 301if (receive.ProtectionLevel.HasValue)
System\ServiceModel\Activities\Send.cs (3)
219Fx.Assert(this.channelCacheEnabled.HasValue, "The value of channelCacheEnabled must be initialized!"); 410if (!this.channelCacheEnabled.HasValue) 437if (!this.channelCacheEnabled.HasValue)
System\ServiceModel\Activities\WorkflowService.cs (4)
1147if ((!targetOperation.HasProtectionLevel && receiveActivity.ProtectionLevel.HasValue && receiveActivity.ProtectionLevel != Net.Security.ProtectionLevel.None) 1148|| (receiveActivity.ProtectionLevel.HasValue && receiveActivity.ProtectionLevel.Value != targetOperation.ProtectionLevel) 1149|| (!receiveActivity.ProtectionLevel.HasValue && targetOperation.ProtectionLevel != Net.Security.ProtectionLevel.None)) 1153string receiveProtectionLevelString = receiveActivity.ProtectionLevel.HasValue ? receiveActivity.ProtectionLevel.ToString() : SR.NotSpecified;
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\MultiplexingDispatchMessageFormatter.cs (1)
66if (nullableFormat.HasValue)
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
71WebMessageFormat format = nullableFormat.HasValue ? nullableFormat.Value : this.webHttpBehavior.GetResponseFormat(description);
System\ServiceModel\Web\IncomingWebRequestContext.cs (1)
189if (ifModifiedSince.HasValue)
System\ServiceModel\Web\OutgoingWebResponseContext.cs (1)
115if (value.HasValue)
System.Web (13)
Compilation\BuildManager.cs (1)
1903if (BatchCompilationEnabled.HasValue) {
Compilation\CompilationUtil.cs (1)
651if (AppSettings.MaxConcurrentCompilations.HasValue && AppSettings.MaxConcurrentCompilations.Value >= 0) {
Configuration\AuthenticationConfig.cs (1)
31if (s_explicitMode.HasValue) {
UI\WebControls\CreateUserWizard.cs (1)
2265if (cellHorizontalAlignment.HasValue) {
UI\WebControls\Wizard.cs (1)
1183if (!_isMacIE.HasValue && !DesignMode) {
UI\WebParts\WebPartManager.cs (1)
577if (!_usePermitOnly.HasValue) {
Util\EnableViewStateMacRegistryHelper.cs (1)
42if (AppSettings.AllowInsecureDeserialization.HasValue) {
Util\RegexUtil.cs (5)
17if (timeout > 0 || timeoutInMillsec.HasValue) { 27if (timeout > 0 || timeoutInMillsec.HasValue) { 37if (timeout > 0 || timeoutInMillsec.HasValue) { 53if (!_isRegexTimeoutSetInAppDomain.HasValue) { 73if (timeoutInMillsec.HasValue) {
WebSockets\AspNetWebSocket.cs (1)
403Debug.Assert(result.CloseStatus.HasValue, "The CloseStatus property should be non-null when a CLOSE frame is received.");
System.Web.ApplicationServices (1)
Hosting\CustomLoaderHelper.cs (1)
34if (customLoaderIsEnabled.HasValue) {
System.Web.DynamicData (4)
DynamicData\MetaColumn.cs (1)
272if (displayAttribute != null && displayAttribute.GetAutoGenerateField().HasValue) {
DynamicData\MetaTable.cs (2)
160if (!_hasToStringOverride.HasValue) { 795if (displayAttribute != null && displayAttribute.GetAutoGenerateFilter().HasValue) {
DynamicData\SimpleFieldTemplateFactory.cs (1)
31if (!_directoryExists.HasValue) {
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceQueryBuilder.cs (1)
70Debug.Assert(_count.HasValue, "Count is not valid until after Build. And only then if computeCount is true");
System.Web.Extensions (2)
UI\ScriptManager.cs (2)
590if (!_isRestMethodCall.HasValue) { 599if (!_isSecureConnection.HasValue) {
System.Windows.Forms (5)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
22501if (resizeResult.HasValue) 23739if (resizeResult.HasValue)
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
189if (!restrictUnmanagedCode.HasValue) {
winforms\Managed\System\WinForms\SendKeys.cs (2)
278if (!sendMethod.HasValue) 904if (!hookSupported.HasValue &&
System.Workflow.ComponentModel (4)
AuthoringOM\Filters\CompensationHandlingFilter.cs (1)
167if (lastCompletedOrderId.HasValue && lastCompletedOrderId < completedOrderId)
AuthoringOM\Serializer\DictionaryMarkupSerializer.cs (2)
142if (this.deserializingDictionary || (entry.HasValue && entry.Value.Value == extendee)) 163if (entry.HasValue && entry.Value.Value == extendee)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
564bool key = entry.HasValue && ((!entry.Value.GetType().IsValueType && entry.Value.Key == entry.Value.Value && entry.Value.Value == obj) ||
System.Workflow.Runtime (1)
Tracking\SqlTrackingQuery.cs (1)
187if (opt.WorkflowStatus.HasValue)
System.WorkflowServices (1)
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (1)
245if (DiagnosticUtility.ShouldTraceInformation && referenceCount.HasValue)
System.Xml (2)
System\Xml\Core\XmlReaderSettings.cs (1)
721if (s_enableLegacyXmlSettings.HasValue)
System\Xml\Serialization\Compilation.cs (1)
100if (AppSettings.UseLegacySerializerGeneration.HasValue) {
WindowsBase (3)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
287if (s_allowAmbiguousReferenceTarget.HasValue)
Base\MS\Internal\IO\Zip\ZipIOExtraFieldZip64Element.cs (1)
203if (_ignoredFieldSize.HasValue)
Shared\MS\Win32\SafeNativeMethodsCLR.cs (1)
530int sessionId = SessionId.HasValue ? SessionId.Value : NativeMethods.WTS_CURRENT_SESSION;
WsatConfig (1)
Configuration\Utilities.cs (1)
189if (!isHttpApiLibAvailable.HasValue)
WsatUI (1)
Configuration\Utilities.cs (1)
189if (!isHttpApiLibAvailable.HasValue)