13 references to ThrowInvalidDataContractException
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\ClassDataContract.cs (8)
826
ThrowInvalidDataContractException
(SR.Format(SR.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
839
ThrowInvalidDataContractException
(SR.Format(SR.NoGetMethodForProperty, property.DeclaringType, property.Name));
848
ThrowInvalidDataContractException
(SR.Format(SR.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name));
851
ThrowInvalidDataContractException
(SR.Format(SR.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name));
857
ThrowInvalidDataContractException
(SR.Format(SR.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type)));
889
ThrowInvalidDataContractException
(SR.Format(SR.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType!), member.Name));
1108
ThrowInvalidDataContractException
(SR.Format(SR.DuplicateExtensionDataSetMethod, method, _extensionDataSetMethod, DataContract.GetClrTypeFullName(method.DeclaringType)));
1151
ThrowInvalidDataContractException
(SR.Format(SR.ValueTypeCannotHaveBaseType, XmlName!.Name, XmlName.Namespace, _baseContract.XmlName!.Name, _baseContract.XmlName.Namespace));
System\Runtime\Serialization\DataContract.cs (1)
1003
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));