16 instantiations of Nullable
mscorlib (6)
system\appdomain.cs (2)
2561fReturn = new Nullable<bool>(); 2565fReturn = new Nullable<bool>(_compatFlags != null && _compatFlags.ContainsKey(value));
system\internal.cs (2)
169Nullable<T> nullable = new Nullable<T>(); 365Nullable<T> nullable = new Nullable<T>();
system\nullable.cs (1)
80return new Nullable<T>(value);
system\stubhelpers.cs (1)
1372return new Nullable<T>();
PresentationCore (1)
Core\CSharp\System\Windows\Media\Effects\Effect.cs (1)
146return worldBounds.IsEmpty ? null : new Nullable<Point>(UnitToWorldUnsafe(unitPoint, worldBounds));
PresentationFramework (2)
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (2)
151return new Nullable<bool>(); 153return new Nullable<bool>((bool)value);
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
239return new Nullable<TElem>((TElem)value);
System.ServiceModel (2)
System\ServiceModel\Configuration\SecurityElementBase.cs (1)
660Nullable<bool> requireDerivedKeys = new Nullable<bool>();
System\ServiceModel\Description\ConfigLoader.cs (1)
203Nullable<bool> isPT = new Nullable<bool>();
System.Workflow.Runtime (2)
Tracking\SqlTrackingQuery.cs (2)
287private WorkflowStatus? _status = new Nullable<WorkflowStatus>(); 320_status = new Nullable<WorkflowStatus>();
WindowsBase (2)
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (2)
598obj = new Nullable<DateTime>(DateTime.FromFileTime(vals[0].union.hVal)); 800return obj != null ? (Nullable<DateTime>)obj : new Nullable<DateTime>();
432 references to Nullable
mscorlib (44)
system\appdomain.cs (2)
2555public Nullable<bool> IsCompatibilitySwitchSet(String value) 2557Nullable<bool> fReturn;
system\collections\generic\comparer.cs (4)
64if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>)) { 109internal class NullableComparer<T> : Comparer<Nullable<T>> where T : struct, IComparable<T> 111public override int Compare(Nullable<T> x, Nullable<T> y) {
system\collections\generic\equalitycomparer.cs (9)
53if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>)) { 186internal class NullableEqualityComparer<T> : EqualityComparer<Nullable<T>> where T : struct, IEquatable<T> 189public override bool Equals(Nullable<T> x, Nullable<T> y) { 199public override int GetHashCode(Nullable<T> obj) { 203internal override int IndexOf(Nullable<T>[] array, Nullable<T> value, int startIndex, int count) { 218internal override int LastIndexOf(Nullable<T>[] array, Nullable<T> value, int startIndex, int count) {
system\diagnostics\eventing\eventsource.cs (1)
2102|| (args[i] == null && (!(pType.IsGenericType && pType.GetGenericTypeDefinition() == typeof(Nullable<>))))
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (2)
1021: TraceLoggingTypeInfo<Nullable<T>> 1043ref Nullable<T> value)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
800else if (IsGenericMatch(dataType, typeof(Nullable<>)))
system\globalization\culturenotfoundexception.cs (6)
20private Nullable<int> m_invalidCultureId; // unrecognized culture Lcid 70m_invalidCultureId = (Nullable<int>) info.GetValue("InvalidCultureId", typeof(Nullable<int>)); 82Nullable<int> invalidCultureId = null; 86info.AddValue("InvalidCultureId", invalidCultureId, typeof(Nullable<int>)); 90public virtual Nullable<int> InvalidCultureId
system\internal.cs (2)
169Nullable<T> nullable = new Nullable<T>(); 365Nullable<T> nullable = new Nullable<T>();
system\nullable.cs (7)
79public static implicit operator Nullable<T>(T value) { 84public static explicit operator T(Nullable<T> value) { 109public static int Compare<T>(Nullable<T> n1, Nullable<T> n2) where T : struct 120public static bool Equals<T>(Nullable<T> n1, Nullable<T> n2) where T : struct 141if( Object.ReferenceEquals(genericType, typeof(Nullable<>))) {
system\reflection\emit\typebuilder.cs (1)
520if (!(destType.IsGenericType && destType.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\runtime\remoting\message.cs (2)
552if (!(paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>))) 567if (!(pt.IsGenericType && pt.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\runtime\remoting\realproxy.cs (1)
546if (!(paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>)))
system\stubhelpers.cs (6)
836internal static unsafe void ConvertContentsToNative_Nullable<T>(ref Nullable<T>[] managedArray, IntPtr pNativeHome) 910internal static unsafe void ConvertContentsToManaged_Nullable<T>(ref Nullable<T>[] managedArray, IntPtr pNativeHome) 1342static internal IntPtr ConvertToNative<T>(ref Nullable<T> pManaged) where T : struct 1356static internal void ConvertToManagedRetVoid<T>(IntPtr pNative, ref Nullable<T> retObj) where T : struct 1363static internal Nullable<T> ConvertToManaged<T>(IntPtr pNative) where T : struct 1368return (Nullable<T>)CLRIReferenceImpl<T>.UnboxHelper(wrapper);
PresentationBuildTasks (2)
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (1)
441private Nullable<bool> _isRealBuild;
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106return (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));
PresentationCore (16)
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (6)
1156TimeSpan beginTime, Nullable<TimeSpan> endTime, 1201Nullable<TimeSpan> activeDuration; 1242TimeSpan beginTime, Nullable<TimeSpan> endTime, bool includeFillPeriod, double speedRatio) 1311private void ProjectionFold(ref TimeIntervalCollection projection, Nullable<TimeSpan> activeDuration, 1354private void ProjectionFoldPoint(ref TimeIntervalCollection projection, Nullable<TimeSpan> activeDuration, 1397private bool ProjectionFoldInterval(ref TimeIntervalCollection projection, Nullable<TimeSpan> activeDuration,
Core\CSharp\System\Windows\Media\Animation\Timeline.cs (3)
67protected Timeline(Nullable<TimeSpan> beginTime) 82protected Timeline(Nullable<TimeSpan> beginTime, Duration duration) 101protected Timeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
Core\CSharp\System\Windows\Media\Animation\TimelineGroup.cs (3)
41protected TimelineGroup(Nullable<TimeSpan> beginTime) 55protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration) 72protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
129public Nullable<TimeSpan> CurrentTime
Core\CSharp\System\Windows\Media\MediaTimeline.cs (3)
74public MediaTimeline(Nullable<TimeSpan> beginTime) : this() 84public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration) 97public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
PresentationFramework (48)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
92public virtual Nullable<bool> ShowDialog() 167public Nullable<bool> ShowDialog(Window owner)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (4)
495internal static void GetCargoColors(Annotation annot, ref Nullable<Color> backgroundColor, ref Nullable<Color> activeBackgroundColor) 588Nullable<Color> tempBackgroundColor = _defaultBackroundColor; 589Nullable<Color> tempActiveBackgroundColor = _defaultActiveBackgroundColor;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
1137private Nullable<InkCanvasSelectionHitResult> _activeSelectionHitResult;
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (1)
259private Nullable<uint> _languageID = null;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (3)
946Nullable<Color> color = null; 985private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1037private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
src\Framework\System\Windows\Controls\BooleanToVisibilityConverter.cs (3)
41else if (value is Nullable<bool>) 43Nullable<bool> tmp = (Nullable<bool>)value;
src\Framework\System\Windows\Controls\DataGrid.cs (2)
7201Nullable<ListSortDirection> currentSortDirection = column.SortDirection; 8676private Nullable<DataGridCellInfo> _selectionAnchor; // For doing extended selection
src\Framework\System\Windows\Controls\DataGridColumn.cs (3)
1109typeof(Nullable<ListSortDirection>), 1116public Nullable<ListSortDirection> SortDirection 1118get { return (Nullable<ListSortDirection>)GetValue(SortDirectionProperty); }
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
611private Nullable<Rect> _cachedBounds = null;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (4)
739typeof(Nullable<ListSortDirection>), 751public Nullable<ListSortDirection> SortDirection 753get { return (Nullable<ListSortDirection>)GetValue(SortDirectionProperty); } 1064var sortDirection = SortDirection;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
3780var screenOrigin = GetPlacementTargetOriginInScreenCoordinates(popup);
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
278var isChecked = IsChecked;
src\Framework\System\Windows\Controls\PrintDialog.cs (1)
344Nullable<bool>
src\Framework\System\Windows\Data\BindingExpression.cs (1)
1369if (targetType.IsGenericType && targetType.GetGenericTypeDefinition() == typeof(Nullable<>))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1615if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
3792static private Type NullableType = typeof(Nullable<>);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (16)
1292public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1302public Nullable<Double> GetCurrentGlobalSpeed( FrameworkContentElement containingObject ) 1313Nullable<Double> currentGlobalSpeed = GetCurrentGlobalSpeedImpl(this); 1325private Nullable<Double> GetCurrentGlobalSpeedImpl( DependencyObject containingObject ) 1341public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject ) 1351public Nullable<Int32> GetCurrentIteration( FrameworkContentElement containingObject ) 1362Nullable<Int32> currentIteration = GetCurrentIterationImpl(this); 1374private Nullable<Int32> GetCurrentIterationImpl( DependencyObject containingObject ) 1390public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1399public Nullable<Double> GetCurrentProgress( FrameworkContentElement containingObject ) 1410Nullable<Double> currentProgress = GetCurrentProgressImpl(this); 1422private Nullable<Double> GetCurrentProgressImpl( DependencyObject containingObject ) 1477public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1487public Nullable<TimeSpan> GetCurrentTime( FrameworkContentElement containingObject ) 1498Nullable<TimeSpan> currentTime = GetCurrentTimeImpl(this); 1510private Nullable<TimeSpan> GetCurrentTimeImpl( DependencyObject containingObject )
src\Framework\System\Windows\Window.cs (2)
336public Nullable<bool> ShowDialog() 1401public Nullable<bool> DialogResult
SMSvcHost (2)
System\ServiceModel\Activation\AppAction.cs (2)
24Nullable<bool> requestsBlocked; 83public Nullable<bool> RequestsBlocked
System (17)
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (1)
1392if (callingType.IsGenericType && callingType.GetGenericTypeDefinition() == typeof(Nullable<>))
net\System\Net\WebSockets\WebSocket.cs (1)
20public abstract Nullable<WebSocketCloseStatus> CloseStatus { get; }
net\System\Net\WebSockets\WebSocketBase.cs (13)
65private Nullable<WebSocketCloseStatus> m_CloseStatus; 159public override Nullable<WebSocketCloseStatus> CloseStatus 1624protected abstract void Initialize(Nullable<ArraySegment<byte>> buffer, CancellationToken cancellationToken); 1633Nullable<ArraySegment<byte>> buffer, 1645internal async Task<WebSocketReceiveResult> Process(Nullable<ArraySegment<byte>> buffer, 1906protected override void Initialize(Nullable<ArraySegment<byte>> buffer, CancellationToken cancellationToken) 1982Nullable<ArraySegment<byte>> buffer, 2082protected virtual Nullable<WebSocketProtocolComponent.Buffer> CreateBuffer(Nullable<ArraySegment<byte>> buffer) 2113protected override void Initialize(Nullable<ArraySegment<byte>> buffer, 2120Nullable<WebSocketProtocolComponent.Buffer> payloadBuffer = CreateBuffer(buffer); 2155protected override Nullable<WebSocketProtocolComponent.Buffer> CreateBuffer(Nullable<ArraySegment<byte>> buffer)
net\System\Net\WebSockets\WebSocketReceiveResult.cs (2)
20Nullable<WebSocketCloseStatus> closeStatus, 38public Nullable<WebSocketCloseStatus> CloseStatus { get; private set; }
System.Activities (1)
System\Activities\Activity.cs (1)
73Nullable<bool> isSubtreeEmpty;
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartSizeFeature.cs (2)
23yield return new AttachedPropertyInfo<Nullable<double>> { IsBrowsable = false, PropertyName = WidthPropertyName, DefaultValue = DefaultWidth }; 24yield return new AttachedPropertyInfo<Nullable<double>> { IsBrowsable = false, PropertyName = HeightPropertyName, DefaultValue = DefaultHeight };
System.Activities.Presentation (22)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
97if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToVisibilityCollpasedConverter.cs (2)
43if (o is Nullable<bool>) 45if ((((Nullable<bool>)o).Value) ^ this.invertBoolean)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
54public static readonly DependencyProperty UseItemTemplateForSelectionProperty = DependencyProperty.Register("UseItemTemplateForSelection", typeof(Nullable<bool>), typeof(ChoiceEditor), new FrameworkPropertyMetadata(null, null, new CoerceValueCallback(ChoiceEditor.CoerceUseItemTemplateForSelection)));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (16)
313static Nullable<Point> EscapeAlgorithm(CoverSet coverSet, Point Z, 317Nullable<Point> intersection = null; 380Nullable<Point> escapePoint = null; 435Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 460Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 485Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 510Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 534static Nullable<Point> EscapeProcessI(CoverSet coverSet, Point Z, 604static Nullable<Point> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<Point> escapePointsA, 618Nullable<Point> intersection = h.Intersect(segment); 631Nullable<Point> intersection = v.Intersect(segment); 642Nullable<Point> escapePointI = null; 766Nullable<Point> intersection = null; 905Nullable<Point> intersection = a.Intersect(b); 973Nullable<Point> intersection = b.Intersect(c); 1228public Nullable<Point> Intersect(ConnectorSegment segment)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
491var maxId = (int?)collection
System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (1)
46if (candidate.IsGenericType && candidate.GetGenericTypeDefinition() != typeof(Nullable<>))
System.ComponentModel.DataAnnotations (2)
DataAnnotations\CustomValidationAttribute.cs (1)
280if (t.IsValueType && (!t.IsGenericType || t.GetGenericTypeDefinition() != typeof(Nullable<>))) {
DataAnnotations\Validator.cs (1)
303(destinationType.IsGenericType && destinationType.GetGenericTypeDefinition() == typeof(Nullable<>));
System.Core (4)
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
2107return typeof(Nullable<>).MakeGenericType(left);
Microsoft\Scripting\Ast\TypeUtils.cs (2)
45return typeof(Nullable<>).MakeGenericType(type); 51return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System\Linq\TypeHelper.cs (1)
35return type != null && type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data (24)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
97if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Data\BoolToVisibilityCollpasedConverter.cs (2)
43if (o is Nullable<bool>) 45if ((((Nullable<bool>)o).Value) ^ this.invertBoolean)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
54public static readonly DependencyProperty UseItemTemplateForSelectionProperty = DependencyProperty.Register("UseItemTemplateForSelection", typeof(Nullable<bool>), typeof(ChoiceEditor), new FrameworkPropertyMetadata(null, null, new CoerceValueCallback(ChoiceEditor.CoerceUseItemTemplateForSelection)));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (16)
313static Nullable<Point> EscapeAlgorithm(CoverSet coverSet, Point Z, 317Nullable<Point> intersection = null; 380Nullable<Point> escapePoint = null; 435Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 460Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 485Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 510Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 534static Nullable<Point> EscapeProcessI(CoverSet coverSet, Point Z, 604static Nullable<Point> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<Point> escapePointsA, 618Nullable<Point> intersection = h.Intersect(segment); 631Nullable<Point> intersection = v.Intersect(segment); 642Nullable<Point> escapePointI = null; 766Nullable<Point> intersection = null; 905Nullable<Point> intersection = a.Intersect(b); 973Nullable<Point> intersection = b.Intersect(c); 1228public Nullable<Point> Intersect(ConnectorSegment segment)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
491var maxId = (int?)collection
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeUtilities.cs (1)
46if (candidate.IsGenericType && candidate.GetGenericTypeDefinition() != typeof(Nullable<>))
fx\src\data\System\Data\Common\DataStorage.cs (1)
468return ((StorageType.Empty == typeCode) && dataType.IsGenericType && (dataType.GetGenericTypeDefinition() == typeof(System.Nullable<>)));
fx\src\data\System\Data\RelatedView.cs (1)
14private readonly Nullable<DataKey> parentKey;
System.Data.DataSetExtensions (3)
System\Data\DataRowExtensions.cs (3)
206if (type.IsGenericType && !type.IsGenericTypeDefinition && (typeof(Nullable<>) == type.GetGenericTypeDefinition())) 233private static Nullable<TElem> NullableField<TElem>(object value) where TElem : struct 237return default(Nullable<TElem>);
System.Data.Entity (81)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1847if (type.IsGenericType && typeof(Nullable<>).Equals(type.GetGenericTypeDefinition()))
System\Data\Common\EntityUtil.cs (1)
957if (destinationType.IsValueType && destinationType.IsGenericType && (typeof(Nullable<>) == destinationType.GetGenericTypeDefinition()))
System\Data\Common\Internal\Materialization\Translator.cs (2)
380result = typeof(Nullable<>).MakeGenericType(result); 388result = typeof(Nullable<>).MakeGenericType(result);
System\Data\Mapping\StorageConditionPropertyMapping.cs (2)
62, object value, Nullable<bool> isNull) : base(cdmMember) { 98internal Nullable<bool> IsNull {
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3232Nullable<bool> isNullValue = null;
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
233if (realType.IsGenericType && (typeof(Nullable<>) == realType.GetGenericTypeDefinition())) 325if (realType.IsGenericType && (typeof(Nullable<>) == realType.GetGenericTypeDefinition()))
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
726type.GetGenericTypeDefinition() == typeof(System.Nullable<>)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
468type.GetGenericTypeDefinition() == typeof(System.Nullable<>)
System\Data\Objects\DataClasses\StructuralObject.cs (64)
379protected internal static Nullable<bool> SetValidValue(Nullable<bool> value, string propertyName) 394protected internal static Nullable<bool> SetValidValue(Nullable<bool> value) 445protected internal static Nullable<byte> SetValidValue(Nullable<byte> value, string propertyName) 460protected internal static Nullable<byte> SetValidValue(Nullable<byte> value) 515protected internal static Nullable<sbyte> SetValidValue(Nullable<sbyte> value, string propertyName) 532protected internal static Nullable<sbyte> SetValidValue(Nullable<sbyte> value) 584protected internal static Nullable<DateTime> SetValidValue(Nullable<DateTime> value, string propertyName) 600protected internal static Nullable<DateTime> SetValidValue(Nullable<DateTime> value) 652protected internal static Nullable<TimeSpan> SetValidValue(Nullable<TimeSpan> value, string propertyName) 668protected internal static Nullable<TimeSpan> SetValidValue(Nullable<TimeSpan> value) 720protected internal static Nullable<DateTimeOffset> SetValidValue(Nullable<DateTimeOffset> value, string propertyName) 736protected internal static Nullable<DateTimeOffset> SetValidValue(Nullable<DateTimeOffset> value) 786protected internal static Nullable<Decimal> SetValidValue(Nullable<Decimal> value, string propertyName) 802protected internal static Nullable<Decimal> SetValidValue(Nullable<Decimal> value) 854protected internal static Nullable<double> SetValidValue(Nullable<double> value, string propertyName) 870protected internal static Nullable<double> SetValidValue(Nullable<double> value) 922protected internal static Nullable<Single> SetValidValue(Nullable<Single> value, string propertyName) 938protected internal static Nullable<Single> SetValidValue(Nullable<Single> value) 990protected internal static Nullable<Guid> SetValidValue(Nullable<Guid> value, string propertyName) 1006protected internal static Nullable<Guid> SetValidValue(Nullable<Guid> value) 1058protected internal static Nullable<Int16> SetValidValue(Nullable<Int16> value, string propertyName) 1074protected internal static Nullable<Int16> SetValidValue(Nullable<Int16> value) 1125protected internal static Nullable<Int32> SetValidValue(Nullable<Int32> value, string propertyName) 1140protected internal static Nullable<Int32> SetValidValue(Nullable<Int32> value) 1192protected internal static Nullable<Int64> SetValidValue(Nullable<Int64> value, string propertyName) 1208protected internal static Nullable<Int64> SetValidValue(Nullable<Int64> value) 1263protected internal static Nullable<UInt16> SetValidValue(Nullable<UInt16> value, string propertyName) 1280protected internal static Nullable<UInt16> SetValidValue(Nullable<UInt16> value) 1335protected internal static Nullable<UInt32> SetValidValue(Nullable<UInt32> value, string propertyName) 1352protected internal static Nullable<UInt32> SetValidValue(Nullable<UInt32> value) 1407protected internal static Nullable<UInt64> SetValidValue(Nullable<UInt64> value, string propertyName) 1424protected internal static Nullable<UInt64> SetValidValue(Nullable<UInt64> value)
System\Data\Objects\ELinq\Translator.cs (2)
659return typeof(Nullable<>).GetProperty(ExpressionConverter.s_nullableHasValuePropertyName, BindingFlags.Public | BindingFlags.Instance); 679return typeof(Nullable<>).GetProperty(ExpressionConverter.s_nullableValuePropertyName, BindingFlags.Public | BindingFlags.Instance);
System\Data\Objects\ELinq\TypeSystem.cs (1)
33typeof(Nullable<>) == type.GetGenericTypeDefinition()))
System\Data\Objects\FieldDescriptor.cs (1)
84result = typeof(Nullable<>).MakeGenericType(result);
System\Data\Query\PlanCompiler\JoinElimination.cs (1)
59private Nullable<bool> m_isSqlCe = null;
System\Data\Query\PlanCompiler\PlanCompiler.cs (1)
109private Nullable<bool> m_mayApplyTransformationRules = null;
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\TypeReference.cs (1)
229CodeTypeReference typeRef = new CodeTypeReference(typeof(System.Nullable<>), CodeTypeReferenceOptions.GlobalReference);
System.Data.Linq (14)
parent\DbmlShared\Mapping.cs (2)
482if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) { 531if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
SortableBindingList.cs (1)
113|| (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>));
SqlClient\Common\SqlFactory.cs (1)
42if (clrType.IsGenericType && clrType.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Common\TypeSystem.cs (2)
61return type != null && type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>); 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Query\SqlFormatter.cs (1)
1240if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>))
SqlClient\Query\SqlMethodCallConverter.cs (1)
953&& mc.Method.DeclaringType.GetGenericTypeDefinition() == typeof(Nullable<>)) {
SqlClient\Query\SqlMultiplexer.cs (1)
242clrType = typeof(Nullable<>).MakeGenericType(expr.ClrType);
SqlClient\Reader\ObjectReaderCompiler.cs (1)
1438clrType = typeof(Nullable<>).MakeGenericType(clrType);
SqlClient\SqlBuilder.cs (1)
314return type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition());
SqlClient\SqlTypeSystemProvider.cs (3)
1414if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) 1516if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) 1534if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Data.Services (9)
System\Data\Services\Parsing\RequestQueryParser.cs (7)
1148if (expr.Type == typeof(bool) || expr.Type == typeof(Nullable<bool>)) 1458right = Expression.Convert(right, typeof(Nullable<>).MakeGenericType(right.Type)); 1463left = Expression.Convert(left, typeof(Nullable<>).MakeGenericType(left.Type)); 1569left = Expression.Convert(left, typeof(Nullable<>).MakeGenericType(left.Type)); 1573right = Expression.Convert(right, typeof(Nullable<>).MakeGenericType(right.Type)); 1940arguments[arguments.Length - 1] = Expression.Constant(typeof(Nullable<>).MakeGenericType(castTargetType)); 2290falseIf = Expression.Convert(falseIf, typeof(Nullable<>).MakeGenericType(falseIf.Type));
System\Data\Services\WebUtil.cs (2)
869return TypeAllowsNull(type) ? type : typeof(Nullable<>).MakeGenericType(type); 877return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data.Services.Client (4)
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
268&& m.Member.DeclaringType.GetGenericTypeDefinition() == typeof(Nullable<>))
System\Data\Services\Client\ClientType.cs (1)
370return !type.IsValueType || (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));
System\Data\Services\Client\Util.cs (2)
448return TypeAllowsNull(type) ? type : typeof(Nullable<>).MakeGenericType(type); 626return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
121typeof(Nullable<>) == type.GetGenericTypeDefinition()))
System\Data\EntityModel\Emitters\TypeReference.cs (1)
192CodeTypeReference typeRef = new CodeTypeReference(typeof(System.Nullable<>), CodeTypeReferenceOptions.GlobalReference);
System.Runtime.Serialization (3)
System\Runtime\Serialization\Globals.cs (1)
817typeOfNullable = typeof(Nullable<>);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
439public static T GetNullableValue<T>(Nullable<T> value) where T : struct 450public static bool GetHasValue<T>(Nullable<T> value) where T : struct
System.ServiceModel (15)
System\ServiceModel\Channels\CreateSequenceResponse.cs (2)
13Nullable<TimeSpan> expires; 43public Nullable<TimeSpan> Expires
System\ServiceModel\Channels\RedirectionDuration.cs (1)
19Nullable<int> hashCode = null;
System\ServiceModel\Channels\RedirectionScope.cs (1)
20Nullable<int> hashCode;
System\ServiceModel\Channels\RedirectionType.cs (1)
19Nullable<int> hashCode = null;
System\ServiceModel\Channels\WsrmMessageInfo.cs (4)
830Nullable<TimeSpan> expires; 831Nullable<TimeSpan> offerExpires; 847public Nullable<TimeSpan> Expires 859public Nullable<TimeSpan> OfferExpires
System\ServiceModel\Configuration\SecurityElementBase.cs (1)
660Nullable<bool> requireDerivedKeys = new Nullable<bool>();
System\ServiceModel\Description\ConfigLoader.cs (2)
203Nullable<bool> isPT = new Nullable<bool>(); 251static bool ShouldSkipCommonBehavior(Type behaviorType, ref Nullable<bool> isPT)
System\ServiceModel\Description\MessageContractExporter.cs (1)
960type.GetGenericTypeDefinition() == typeof(Nullable<>));
System\ServiceModel\Description\MessageContractImporter.cs (1)
1757return typeRef.BaseType == typeof(Nullable<>).FullName;
System\ServiceModel\Security\SecurityUtils.cs (1)
87internal static int GetOrdinal(Nullable<ProtectionLevel> p)
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedAspNetEnvironment.cs (1)
42Nullable<bool> isWindowsAuthentication;
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
47static Nullable<bool> iisSupportsExtendedProtection;
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\AsyncOperationContext.cs (2)
21Nullable<DateTime> startTime; 110public Nullable<DateTime> StartedAt
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
30public static readonly Type NullableType = typeof(Nullable<>);
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (1)
20static readonly Type TypeOfNullable = typeof(Nullable<>);
System.Web (6)
Compilation\BuildManager.cs (1)
1875public static Nullable<bool> BatchCompilationEnabled {
UI\WebControls\ObjectDataSourceView.cs (1)
717if (destinationType.IsGenericType && (destinationType.GetGenericTypeDefinition() == typeof(Nullable<>))) {
UI\WebControls\Parameter.cs (1)
329return type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>));
UI\WebControls\TreeNode.cs (2)
223[DefaultValue(typeof(Nullable<bool>), "")] 538[DefaultValue(typeof(Nullable<bool>), "")]
UI\WebControls\TreeNodeBinding.cs (1)
272[DefaultValue(typeof(Nullable<bool>), "")]
System.Web.Entity (6)
System\Data\WebControls\EntityDataSourceQueryBuilder.cs (1)
32private Nullable<int> _count;
System\Data\WebControls\EntityDataSourceUtil.cs (3)
490if (type.IsGenericType && type.GetGenericTypeDefinition().Equals(typeof(Nullable<>))) 553if (type.IsGenericType && typeof(Nullable<>).IsAssignableFrom(type.GetGenericTypeDefinition()) && !type.ContainsGenericParameters) 742type = typeof(Nullable<>).MakeGenericType(type);
System\Data\WebControls\EntityDataSourceView.cs (1)
1737if (valueType.IsGenericType && (valueType.GetGenericTypeDefinition() == typeof(Nullable<>)))
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
103if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Web.Extensions (17)
Script\Serialization\JavaScriptObjectDeserializer.cs (9)
52Nullable<Char> c = _s.GetNextNonEmptyChar(); 85Nullable<Char> c = _s.MoveNext(); 119Nullable<Char> c = _s.MoveNext(); 191Nullable<Char> c = _s.GetNextNonEmptyChar(); 272Nullable<Char> c = null; 292Nullable<Char> c = _s.MoveNext(); 389private static bool IsNextElementArray(Nullable<Char> c) { 403private static bool IsNextElementObject(Nullable<Char> c) { 407private static bool IsNextElementString(Nullable<Char> c) {
Script\Serialization\JavaScriptString.cs (2)
21internal Nullable<char> GetNextNonEmptyChar() { 32internal Nullable<char> MoveNext() {
Script\Serialization\ObjectConverter.cs (1)
570!(type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>));
Script\Services\ServicesUtilities.cs (1)
102if (genericTypeDefinition == typeof(Nullable<>)) {
UI\WebControls\DataSourceHelper.cs (1)
168(destinationType.GetGenericTypeDefinition() == typeof(Nullable<>))) {
UI\WebControls\Dynamic.cs (2)
1131type = typeof(Nullable<>).MakeGenericType(type); 1310return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
UI\WebControls\Expressions\ExpressionHelper.cs (1)
18if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Formatter.cs (1)
457if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) {
System.Workflow.Activities (8)
Rules\Helpers.cs (1)
64return ((type.IsValueType) && (type.IsGenericType) && (type.GetGenericTypeDefinition().Equals(typeof(Nullable<>))));
Rules\Literal.cs (2)
913parm1 = typeof(Nullable<>).MakeGenericType(parm1); 914parm2 = typeof(Nullable<>).MakeGenericType(parm2);
Rules\RuleValidation.cs (5)
296parameterType = typeof(Nullable<>).MakeGenericType(parameter.ParameterType); 430resultType = typeof(Nullable<>).MakeGenericType(method.ReturnType); 465resultType = typeof(Nullable<>).MakeGenericType(method.ReturnType); 613resultType = (resultIsNullable) ? typeof(Nullable<>).MakeGenericType(resultBaseType) : resultBaseType; 644resultType = (resultIsNullable) ? typeof(Nullable<>).MakeGenericType(resultBaseType) : resultBaseType;
System.Workflow.ComponentModel (22)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
579if ((typeArgs.Length == 1) && (this.runtimeType == typeof(Nullable<>)) && !(typeArgs[0].IsEnum))
AuthoringOM\Design\Connector.cs (16)
1878Nullable<Point> intersection = null; 2014private static Nullable<Point> EscapeAlgorithm(CoverSet coverSet, Point Z, Point targetPoint, 2018Nullable<Point> intersection = null; 2067Nullable<Point> escapePoint = EscapeProcessI(coverSet, Z, v, Orientation.Horizontal, margin); 2109Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 2132Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 2155Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 2178Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 2203private static Nullable<Point> EscapeProcessI(CoverSet coverSet, Point Z, 2281private static Nullable<Point> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<Point> LeA, 2297Nullable<Point> itersection = h.Intersect(segment); 2310Nullable<Point> itersection = v.Intersect(segment); 2321Nullable<Point> escapePointI = null; 2428Nullable<Point> intersection = a.Intersect(b); 2493Nullable<Point> intersection = b.Intersect(c); 2624public Nullable<Point> Intersect(ConnectorSegment segment)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (3)
31private Nullable<Point> initialDragPoint = null; 347private void EndEditing(Nullable<Point> editPoint) 418private bool UpdateCursor(Nullable<Point> cursorPoint)
AuthoringOM\Filters\CompensationHandlingFilter.cs (1)
161int? lastCompletedOrderId = targetActivity.GetValue(CompensationHandlingFilter.LastCompensatedOrderIdProperty) as Nullable<int>;
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
1236if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
System.Xml (19)
System\Xml\Serialization\Types.cs (1)
866if (type.GetGenericTypeDefinition() == typeof(Nullable<>).GetGenericTypeDefinition())
System\Xml\Serialization\XmlSerializationReader.cs (18)
713value = default(Nullable<int>); 716value = default(Nullable<bool>); 718value = default(Nullable<Int16>); 720value = default(Nullable<long>); 722value = default(Nullable<float>); 724value = default(Nullable<double>); 726value = default(Nullable<decimal>); 728value = default(Nullable<DateTime>); 732value = default(Nullable<DateTime>); 734value = default(Nullable<DateTime>); 736value = default(Nullable<byte>); 738value = default(Nullable<SByte>); 740value = default(Nullable<UInt16>); 742value = default(Nullable<UInt32>); 744value = default(Nullable<UInt64>); 756value = default(Nullable<char>); 758value = default(Nullable<Guid>); 760value = default(Nullable<TimeSpan>);
WindowsBase (29)
Base\MS\Internal\AvTrace.cs (1)
529static Nullable<bool> _enabledInRegistry = null;
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
546private Nullable<long> _offsetForCurrentPieceNumber;
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (8)
254public override Nullable<DateTime> Created 269public override Nullable<DateTime> Modified 302public override Nullable<DateTime> LastPrinted 426private Nullable<DateTime> GetDateTimePropertyValue(PackageXmlEnum propertyName) 432return (Nullable<DateTime>) valueObject; 736private Nullable<DateTime> GetDateData(XmlTextReader reader) 880if (entry.Value is Nullable<DateTime>) 897_xmlWriter.WriteString(XmlConvert.ToString(((Nullable<DateTime>)entry.Value).Value.ToUniversalTime(), "yyyy-MM-ddTHH:mm:ss.fffffffZ"));
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (5)
240public override Nullable<DateTime> LastPrinted 256public override Nullable<DateTime> Created 272public override Nullable<DateTime> Modified 793private Nullable<DateTime> 800return obj != null ? (Nullable<DateTime>)obj : new Nullable<DateTime>();
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
1960internal static Nullable<ContentRight> GetRightFromString(string rightName)
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (5)
309Nullable<ContentRight> right = GetIssuanceLicenseUserRight 357Nullable<KeyValuePair<string, string>> appSpecificDataEntry = GetApplicationSpecificData(appDataIndex); 524static private Nullable<ContentRight> GetRightFromHandle(SafeRightsManagementPubHandle rightHandle, 728private Nullable<KeyValuePair<string, string>> GetApplicationSpecificData(int index) 790private Nullable<ContentRight> GetIssuanceLicenseUserRight
Base\System\IO\Packaging\Package.cs (1)
1202Nullable<FileShare> packageShare,
Base\System\IO\Packaging\PackageProperties.cs (3)
142public abstract Nullable<DateTime> LastPrinted 150public abstract Nullable<DateTime> Created 158public abstract Nullable<DateTime> Modified
Base\System\Security\RightsManagement\CryptoProvider.cs (2)
313Nullable<ContentRight> contentRight = ClientSession.GetRightFromString(rightsInfo.RightName); 535Nullable<ContentRight> right =
Base\System\Windows\DependencyProperty.cs (1)
1247private static Type NullableType = typeof(Nullable<>);
Shared\System\Windows\Markup\ReflectionHelper.cs (1)
106return (type.IsGenericType && (type.GetGenericTypeDefinition() == typeof(Nullable<>)));
WsatConfig (1)
Configuration\Utilities.cs (1)
15static Nullable<bool> isHttpApiLibAvailable;
WsatUI (1)
Configuration\Utilities.cs (1)
15static Nullable<bool> isHttpApiLibAvailable;