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