26 references to UnderlyingType
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\ClassDataContract.cs (8)
804Type type = UnderlyingType; 1068if (!_isMethodChecked && UnderlyingType != null) 1074Type type = UnderlyingType; 1215if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 1221_knownDataContracts = DataContract.ImportKnownTypeAttributes(UnderlyingType); 1251ConstructorInfo? ctor = UnderlyingType.GetConstructor(Globals.ScanAllMembers, SerInfoCtorArgs); 1253throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(UnderlyingType))); 1263Type type = UnderlyingType;
System\Runtime\Serialization\CollectionDataContract.cs (9)
460throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(UnderlyingType))); 467throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(UnderlyingType))); 469throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractKeyNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.KeyName)); 475throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(UnderlyingType))); 477throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractValueNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.ValueName)); 615SR.Format(SR.DupKeyValueName, DataContract.GetClrTypeFullName(UnderlyingType), KeyName), 616UnderlyingType); 699if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 705_knownDataContracts = DataContract.ImportKnownTypeAttributes(UnderlyingType);
System\Runtime\Serialization\DataContract.cs (4)
166public virtual Type UnderlyingType => _helper.UnderlyingType; 1076MethodInfo? method = UnderlyingType.GetMethod(Globals.ParseMethodName, BindingFlags.Public | BindingFlags.Static, new Type[] { typeof(string) }); 1078if (method != null && method.ReturnType == UnderlyingType) 1107ThrowInvalidDataContractException(message, UnderlyingType);
System\Runtime\Serialization\EnumDataContract.cs (1)
217Type type = UnderlyingType;
System\Runtime\Serialization\XmlDataContract.cs (4)
154object[]? xmlRootAttributes = UnderlyingType?.GetCustomAttributes(typeof(XmlRootAttribute), false).ToArray(); 177throw new InvalidDataContractException(SR.Format(SR.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(UnderlyingType!))); 188if (!_isKnownTypeAttributeChecked && UnderlyingType != null) 194_knownDataContracts = DataContract.ImportKnownTypeAttributes(this.UnderlyingType);