26 references to UnderlyingType
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\ClassDataContract.cs (8)
801Type type = UnderlyingType; 1065if (!_isMethodChecked && UnderlyingType != null) 1071Type type = UnderlyingType; 1212if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 1218_knownDataContracts = DataContract.ImportKnownTypeAttributes(UnderlyingType); 1248ConstructorInfo? ctor = UnderlyingType.GetConstructor(Globals.ScanAllMembers, SerInfoCtorArgs); 1250throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(UnderlyingType))); 1260Type 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)
159public virtual Type UnderlyingType => _helper.UnderlyingType; 1050MethodInfo? method = UnderlyingType.GetMethod(Globals.ParseMethodName, BindingFlags.Public | BindingFlags.Static, new Type[] { typeof(string) }); 1052if (method != null && method.ReturnType == UnderlyingType) 1081ThrowInvalidDataContractException(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);