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