64 references to GetUnderlyingType
mscorlib (4)
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (3)
586
if (Object.ReferenceEquals(memberType, Converter.typeofObject) || (object)Nullable.
GetUnderlyingType
(memberType) != null)
799
if (Object.ReferenceEquals(arrayElemType, Converter.typeofObject) || (object)Nullable.
GetUnderlyingType
(arrayElemType) != null)
950
if (!Object.ReferenceEquals(arrayElemTypeNameInfo.NItype, Converter.typeofObject) && (object)Nullable.
GetUnderlyingType
(arrayElemTypeNameInfo.NItype) == null)
system\runtime\serialization\objectmanager.cs (1)
393
if (Nullable.
GetUnderlyingType
(parentField.FieldType) != null)
PresentationFramework (2)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (2)
123
innerType = Nullable.
GetUnderlyingType
(sourceType);
129
innerType = Nullable.
GetUnderlyingType
(targetType);
System (1)
compmod\system\componentmodel\NullableConverter.cs (1)
34
this.simpleType = Nullable.
GetUnderlyingType
(type);
System.Activities (1)
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
32
if (variable.Type.IsValueType && Nullable.
GetUnderlyingType
(variable.Type) == null)
System.Core (1)
Microsoft\Scripting\Actions\DynamicObject.cs (1)
509
if (binder.ReturnType.IsValueType && Nullable.
GetUnderlyingType
(binder.ReturnType) == null) {
System.Data.Entity (15)
System\Data\Common\EntityUtil.cs (2)
942
(Nullable.
GetUnderlyingType
(destinationType) ?? destinationType).Name,
949
(Nullable.
GetUnderlyingType
(destinationType) ?? destinationType).Name,
System\Data\Common\Internal\Materialization\Shaper.cs (3)
826
var underlyingType = Nullable.
GetUnderlyingType
(typeof(T));
955
(Nullable.
GetUnderlyingType
(typeof(TProperty)) ?? typeof(TProperty)).Name,
963
(Nullable.
GetUnderlyingType
(typeof(TProperty)) ?? typeof(TProperty)).Name,
System\Data\Common\Internal\Materialization\Translator.cs (1)
2145
Type underlyingType = Nullable.
GetUnderlyingType
(type);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
464
Debug.Assert(Nullable.
GetUnderlyingType
(principalValue.GetType()) == null, "Unexpected nullable type.");
System\Data\Metadata\ObjectLayer\ObjectItemAssemblyLoader.cs (1)
158
return ClrProviderManifest.Instance.TryGetPrimitiveType(Nullable.
GetUnderlyingType
(type) ?? type, out primitiveType);
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
474
if ((Nullable.
GetUnderlyingType
(property.PropertyType) ?? property.PropertyType).IsEnum)
659
(Nullable.
GetUnderlyingType
(clrProperty.PropertyType) ?? clrProperty.PropertyType).IsEnum,
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
754
bool nullableFacetValue = !isKeyMember && (!clrProperty.PropertyType.IsValueType || Nullable.
GetUnderlyingType
(clrProperty.PropertyType) != null);
System\Data\Objects\ELinq\TypeSystem.cs (1)
200
return Nullable.
GetUnderlyingType
(type) ?? type;
System\Data\Objects\ObjectContext.cs (2)
2798
Debug.Assert(Nullable.
GetUnderlyingType
(objectParameter.MappableType) == null, "Nullable types not expected here.");
3168
Type unwrappedTElement = Nullable.
GetUnderlyingType
(typeof(TElement)) ?? typeof(TElement);
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
148
var propertyUnderlyingType = Nullable.
GetUnderlyingType
(prop.PropertyType) ?? prop.PropertyType;
System.Data.Services (9)
System\Data\Services\Parsing\FunctionDescription.cs (1)
196
Type underlyingType = Nullable.
GetUnderlyingType
(type);
System\Data\Services\Parsing\RequestQueryParser.cs (1)
423
return Nullable.
GetUnderlyingType
(type) ?? type;
System\Data\Services\Parsing\WebConvert.cs (3)
348
targetType = Nullable.
GetUnderlyingType
(targetType) ?? targetType;
504
targetType = Nullable.
GetUnderlyingType
(targetType) ?? targetType;
621
valueType = Nullable.
GetUnderlyingType
(valueType) ?? valueType;
System\Data\Services\Providers\ResourceProperty.cs (1)
291
if (IsOfKind(kind, ResourcePropertyKind.Key) && Nullable.
GetUnderlyingType
(propertyResourceType.InstanceType) != null)
System\Data\Services\RequestUriProcessor.cs (1)
1071
Type underlyingType = Nullable.
GetUnderlyingType
(parameterType);
System\Data\Services\Serializers\JsonDeserializer.cs (1)
82
Type propertyType = Nullable.
GetUnderlyingType
(typeToBeConverted) ?? typeToBeConverted;
System\Data\Services\Serializers\MetadataSerializer.cs (1)
562
if (resourceProperty.IsOfKind(ResourcePropertyKind.Key) || (resourceProperty.Type.IsValueType && Nullable.
GetUnderlyingType
(resourceProperty.Type) == null))
System.Data.Services.Client (11)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
621
valueType = Nullable.
GetUnderlyingType
(valueType) ?? valueType;
System\Data\Services\Client\ALinq\ExpressionWriter.cs (1)
485
type = Nullable.
GetUnderlyingType
(type) ?? type;
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
356
Type sourceType = Nullable.
GetUnderlyingType
(u.Operand.Type) ?? u.Operand.Type;
357
Type targetType = Nullable.
GetUnderlyingType
(u.Type) ?? u.Type;
System\Data\Services\Client\AtomMaterializer.cs (2)
988
Type underlyingExpectedType = Nullable.
GetUnderlyingType
(this.expectedType) ?? this.expectedType;
1210
Type underlyingType = Nullable.
GetUnderlyingType
(type) ?? type;
System\Data\Services\Client\ClientConvert.cs (1)
383
return IsKnownType(Nullable.
GetUnderlyingType
(type) ?? type);
System\Data\Services\Client\ClientType.cs (4)
85
this.ElementType = Nullable.
GetUnderlyingType
(type) ?? type;
139
ptype = Nullable.
GetUnderlyingType
(ptype) ?? ptype;
381
t = Nullable.
GetUnderlyingType
(t) ?? t;
882
Debug.Assert(null == Nullable.
GetUnderlyingType
(propertyType), "should already have been denullified");
System.Web (3)
ModelBinding\TypeHelpers.cs (1)
26
return Nullable.
GetUnderlyingType
(type) != null;
ModelBinding\ValueProviderResult.cs (1)
68
Type underlyingType = Nullable.
GetUnderlyingType
(destinationType);
UI\WebControls\DataBoundControlHelper.cs (1)
84
Type underlyingType = Nullable.
GetUnderlyingType
(type);
System.Web.DynamicData (3)
DynamicData\QueryableFilterUserControl.cs (1)
150
if (Nullable.
GetUnderlyingType
(propertyExpression.Type) != null && value != null) {
DynamicData\Util\Misc.cs (2)
51
return Nullable.
GetUnderlyingType
(type) ?? type;
118
return Nullable.
GetUnderlyingType
(type) != null || !type.IsValueType;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Formatter.cs (1)
487
Type underlyingType = Nullable.
GetUnderlyingType
(type);
System.Workflow.Activities (11)
Rules\Executor.cs (1)
841
Type resultType = (resultNullable) ? Nullable.
GetUnderlyingType
(toType) : toType;
Rules\Literal.cs (2)
562
Type lhsType0 = (lhsNullable) ? Nullable.
GetUnderlyingType
(lhs) : lhs;
563
Type rhsType0 = (rhsNullable) ? Nullable.
GetUnderlyingType
(rhs) : rhs;
Rules\RuleValidation.cs (8)
588
lhsBaseType = (lhsNullable) ? Nullable.
GetUnderlyingType
(lhs) : lhs;
589
rhsBaseType = (rhsNullable) ? Nullable.
GetUnderlyingType
(rhs) : rhs;
1205
Type fromType0 = (fromIsNullable) ? Nullable.
GetUnderlyingType
(fromType) : fromType;
1206
Type toType0 = (toIsNullable) ? Nullable.
GetUnderlyingType
(toType) : toType;
1382
Type fromType0 = (fromIsNullable) ? Nullable.
GetUnderlyingType
(fromType) : fromType;
1383
Type toType0 = (toIsNullable) ? Nullable.
GetUnderlyingType
(toType) : toType;
1926
rhsType = Nullable.
GetUnderlyingType
(rhsType);
1930
lhsType = Nullable.
GetUnderlyingType
(lhsType);
System.WorkflowServices (1)
System\Workflow\Activities\ServiceOperationHelpers.cs (1)
127
return (Nullable.
GetUnderlyingType
(type.IsByRef ? type.GetElementType() : type) != null);
System.Xml (1)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3387
Type parameterType = Nullable.
GetUnderlyingType
(type);