28 references to UnderlyingType
System.Runtime.Serialization (28)
System\Runtime\Serialization\ClassDataContract.cs (8)
850
Type type = this.
UnderlyingType
;
1103
if (!isMethodChecked &&
UnderlyingType
!= null)
1109
Type type = this.
UnderlyingType
;
1244
if (!isKnownTypeAttributeChecked &&
UnderlyingType
!= null)
1250
knownDataContracts = DataContract.ImportKnownTypeAttributes(this.
UnderlyingType
);
1307
ConstructorInfo ctor =
UnderlyingType
.GetConstructor(Globals.ScanAllMembers, null, SerInfoCtorArgs, null);
1309
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(
UnderlyingType
))));
1319
Type type =
UnderlyingType
;
System\Runtime\Serialization\CollectionDataContract.cs (10)
541
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(
UnderlyingType
))));
548
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(
UnderlyingType
))));
550
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractKeyNoDictionary, DataContract.GetClrTypeFullName(
UnderlyingType
), collectionContractAttribute.KeyName)));
556
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(
UnderlyingType
))));
558
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractValueNoDictionary, DataContract.GetClrTypeFullName(
UnderlyingType
), collectionContractAttribute.ValueName)));
665
if (itemContract == null &&
UnderlyingType
!= null)
672
SR.GetString(SR.DupKeyValueName, DataContract.GetClrTypeFullName(
UnderlyingType
), KeyName),
673
UnderlyingType
);
773
if (!isKnownTypeAttributeChecked &&
UnderlyingType
!= null)
779
knownDataContracts = DataContract.ImportKnownTypeAttributes(this.
UnderlyingType
);
System\Runtime\Serialization\DataContract.cs (4)
188
get { return helper.
UnderlyingType
; }
1233
MethodInfo method =
UnderlyingType
.GetMethod(Globals.ParseMethodName, BindingFlags.Public | BindingFlags.Static, null, new Type[] { Globals.TypeOfString }, null);
1235
if (method != null && method.ReturnType ==
UnderlyingType
)
1271
ThrowInvalidDataContractException(message,
UnderlyingType
);
System\Runtime\Serialization\EnumDataContract.cs (1)
271
Type type = this.
UnderlyingType
;
System\Runtime\Serialization\XmlDataContract.cs (5)
211
object[] xmlRootAttributes = (
UnderlyingType
== null) ? null :
UnderlyingType
.GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false);
234
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(
UnderlyingType
))));
243
if (!isKnownTypeAttributeChecked &&
UnderlyingType
!= null)
249
knownDataContracts = DataContract.ImportKnownTypeAttributes(this.
UnderlyingType
);