28 references to UnderlyingType
System.Runtime.Serialization (28)
System\Runtime\Serialization\ClassDataContract.cs (8)
850Type type = this.UnderlyingType; 1103if (!isMethodChecked && UnderlyingType != null) 1109Type type = this.UnderlyingType; 1244if (!isKnownTypeAttributeChecked && UnderlyingType != null) 1250knownDataContracts = DataContract.ImportKnownTypeAttributes(this.UnderlyingType); 1307ConstructorInfo ctor = UnderlyingType.GetConstructor(Globals.ScanAllMembers, null, SerInfoCtorArgs, null); 1309throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(UnderlyingType)))); 1319Type type = UnderlyingType;
System\Runtime\Serialization\CollectionDataContract.cs (10)
541throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(UnderlyingType)))); 548throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(UnderlyingType)))); 550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractKeyNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.KeyName))); 556throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(UnderlyingType)))); 558throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractValueNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.ValueName))); 665if (itemContract == null && UnderlyingType != null) 672SR.GetString(SR.DupKeyValueName, DataContract.GetClrTypeFullName(UnderlyingType), KeyName), 673UnderlyingType); 773if (!isKnownTypeAttributeChecked && UnderlyingType != null) 779knownDataContracts = DataContract.ImportKnownTypeAttributes(this.UnderlyingType);
System\Runtime\Serialization\DataContract.cs (4)
188get { return helper.UnderlyingType; } 1233MethodInfo method = UnderlyingType.GetMethod(Globals.ParseMethodName, BindingFlags.Public | BindingFlags.Static, null, new Type[] { Globals.TypeOfString }, null); 1235if (method != null && method.ReturnType == UnderlyingType) 1271ThrowInvalidDataContractException(message, UnderlyingType);
System\Runtime\Serialization\EnumDataContract.cs (1)
271Type type = this.UnderlyingType;
System\Runtime\Serialization\XmlDataContract.cs (5)
211object[] xmlRootAttributes = (UnderlyingType == null) ? null : UnderlyingType.GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false); 234throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(UnderlyingType)))); 243if (!isKnownTypeAttributeChecked && UnderlyingType != null) 249knownDataContracts = DataContract.ImportKnownTypeAttributes(this.UnderlyingType);