38 references to GetValueOrDefault
mscorlib (1)
system\internal.cs (1)
170
return nullable.
GetValueOrDefault
();
System.Core (35)
System\Linq\Enumerable.cs (10)
1422
if (v != null) sum += v.
GetValueOrDefault
();
1442
if (v != null) sum += v.
GetValueOrDefault
();
1459
if (v != null) sum += v.
GetValueOrDefault
();
1475
if (v != null) sum += v.
GetValueOrDefault
();
1491
if (v != null) sum += v.
GetValueOrDefault
();
1972
sum += v.
GetValueOrDefault
();
2002
sum += v.
GetValueOrDefault
();
2032
sum += v.
GetValueOrDefault
();
2062
sum += v.
GetValueOrDefault
();
2092
sum += v.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
125
sum += current.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (2)
54
sum += enumerator.Current.
GetValueOrDefault
();
113
tempSum += element.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
125
sum += current.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (4)
74
if (best == null || current < best || double.IsNaN(current.
GetValueOrDefault
()))
86
if (best == null || current > best || double.IsNaN(best.
GetValueOrDefault
()))
154
if (currentElement == null || elem < currentElement || double.IsNaN(elem.
GetValueOrDefault
()))
169
if (currentElement == null || elem > currentElement || double.IsNaN(currentElement.
GetValueOrDefault
()))
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (2)
54
sum += enumerator.Current.
GetValueOrDefault
();
113
tempSum += element.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
126
sum += current.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (4)
74
if (best == null || current < best || float.IsNaN(current.
GetValueOrDefault
()))
86
if (best == null || current > best || float.IsNaN(best.
GetValueOrDefault
()))
154
if (currentElement == null || elem < currentElement || float.IsNaN(elem.
GetValueOrDefault
()))
169
if (currentElement == null || elem > currentElement || float.IsNaN(currentElement.
GetValueOrDefault
()))
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (2)
54
sum += enumerator.Current.
GetValueOrDefault
();
113
tempSum += element.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
126
sum += current.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (2)
56
sum += enumerator.Current.
GetValueOrDefault
();
117
tempSum += element.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
126
sum += current.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (2)
56
sum += enumerator.Current.
GetValueOrDefault
();
119
tempSum += element.
GetValueOrDefault
();
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
162
PartitionedStreamMerger<TOutput> merger = new PartitionedStreamMerger<TOutput>(forEffect, mergeOptions.
GetValueOrDefault
(),
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (1)
70
return new ListQueryResults<TElement>(dataAsList, settings.DegreeOfParallelism.
GetValueOrDefault
(), preferStriping);
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
6382
SqlEventSource.Log.EndExecute(GetHashCode(), compositeState, sqlExceptionNumber.
GetValueOrDefault
());
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (1)
281
recordsAffected = affected.
GetValueOrDefault
();