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