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