26 references to UnderlyingType
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\ClassDataContract.cs (8)
799Type type = UnderlyingType; 1063if (!_isMethodChecked && UnderlyingType != null) 1069Type type = UnderlyingType; 1210if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 1216_knownDataContracts = DataContract.ImportKnownTypeAttributes(UnderlyingType); 1246ConstructorInfo? ctor = UnderlyingType.GetConstructor(Globals.ScanAllMembers, SerInfoCtorArgs); 1248throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(UnderlyingType))); 1258Type type = UnderlyingType;
System\Runtime\Serialization\CollectionDataContract.cs (9)
459throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(UnderlyingType))); 466throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(UnderlyingType))); 468throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractKeyNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.KeyName)); 474throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(UnderlyingType))); 476throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractValueNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.ValueName)); 614SR.Format(SR.DupKeyValueName, DataContract.GetClrTypeFullName(UnderlyingType), KeyName), 615UnderlyingType); 698if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 704_knownDataContracts = DataContract.ImportKnownTypeAttributes(UnderlyingType);
System\Runtime\Serialization\DataContract.cs (4)
165public virtual Type UnderlyingType => _helper.UnderlyingType; 1067MethodInfo? method = UnderlyingType.GetMethod(Globals.ParseMethodName, BindingFlags.Public | BindingFlags.Static, new Type[] { typeof(string) }); 1069if (method != null && method.ReturnType == UnderlyingType) 1098ThrowInvalidDataContractException(message, UnderlyingType);
System\Runtime\Serialization\EnumDataContract.cs (1)
217Type type = UnderlyingType;
System\Runtime\Serialization\XmlDataContract.cs (4)
154object[]? xmlRootAttributes = UnderlyingType?.GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false).ToArray(); 177throw new InvalidDataContractException(SR.Format(SR.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(UnderlyingType!))); 188if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 194_knownDataContracts = DataContract.ImportKnownTypeAttributes(this.UnderlyingType);