13 references to ThrowInvalidDataContractException
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\ClassDataContract.cs (8)
824
ThrowInvalidDataContractException
(SR.Format(SR.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
837
ThrowInvalidDataContractException
(SR.Format(SR.NoGetMethodForProperty, property.DeclaringType, property.Name));
846
ThrowInvalidDataContractException
(SR.Format(SR.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name));
849
ThrowInvalidDataContractException
(SR.Format(SR.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name));
855
ThrowInvalidDataContractException
(SR.Format(SR.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type)));
887
ThrowInvalidDataContractException
(SR.Format(SR.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
1106
ThrowInvalidDataContractException
(SR.Format(SR.DuplicateExtensionDataSetMethod, method, _extensionDataSetMethod, DataContract.GetClrTypeFullName(method.DeclaringType)));
1149
ThrowInvalidDataContractException
(SR.Format(SR.ValueTypeCannotHaveBaseType, XmlName!.Name, XmlName.Namespace, _baseContract.XmlName!.Name, _baseContract.XmlName.Namespace));
System\Runtime\Serialization\DataContract.cs (1)
1020
set =>
ThrowInvalidDataContractException
(SR.RequiresClassDataContractToSetIsISerializable);
System\Runtime\Serialization\EnumDataContract.cs (4)
170
ThrowInvalidDataContractException
(
233
ThrowInvalidDataContractException
(SR.Format(SR.TooManyEnumMembers, DataContract.GetClrTypeFullName(field.DeclaringType!), field.Name));
240
ThrowInvalidDataContractException
(SR.Format(SR.InvalidEnumMemberValue, field.Name, DataContract.GetClrTypeFullName(type)));
252
ThrowInvalidDataContractException
(SR.Format(SR.DataMemberOnEnumField, DataContract.GetClrTypeFullName(field.DeclaringType!), field.Name));