26 references to ThrowInvalidDataContractException
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\ClassDataContract.cs (11)
237
ThrowInvalidDataContractException
(DeserializationExceptionMessage, type: null);
261
DataContract.
ThrowInvalidDataContractException
(
757
DataContract.
ThrowInvalidDataContractException
(
783
DataContract.
ThrowInvalidDataContractException
(
1110
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.ExtensionDataSetMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1112
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.ExtensionDataSetParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfExtensionDataObject), method.DeclaringType);
1125
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.DuplicateCallback, method, currentCallback, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1127
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.DuplicateAttribute, prevAttributeType, attributeType, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1129
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.CallbacksCannotBeVirtualMethods, method, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1133
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.CallbackMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
1135
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.CallbackParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
System\Runtime\Serialization\CollectionDataContract.cs (3)
320
ThrowInvalidDataContractException
(_helper.DeserializationExceptionMessage, type: null);
360
ThrowInvalidDataContractException
(_helper.DeserializationExceptionMessage, type: null);
613
DataContract.
ThrowInvalidDataContractException
(
System\Runtime\Serialization\DataContract.cs (11)
1652
ThrowInvalidDataContractException
(SR.Format(SR.DataContractNamespaceIsNotValid, dataContractNs), type);
1664
ThrowInvalidDataContractException
(SR.Format(SR.DataContractNamespaceReserved, Globals.SerializationNamespace), type);
1669
ThrowInvalidDataContractException
(SR.Format(SR.DataContractNamespaceIsNotValid, dataContractNs), type);
1962
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type);
1972
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type);
1978
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeNoData, DataContract.GetClrTypeFullName(type)), type);
1982
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeEmptyString, DataContract.GetClrTypeFullName(type)), type);
1986
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeUnknownMethod, methodName, DataContract.GetClrTypeFullName(type)), type);
1989
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeReturnType, DataContract.GetClrTypeFullName(type), methodName), type);
1994
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeMethodNull, DataContract.GetClrTypeFullName(type)), type);
2000
DataContract.
ThrowInvalidDataContractException
(SR.Format(SR.KnownTypeAttributeValidMethodTypes, DataContract.GetClrTypeFullName(type)), type);
System\Runtime\Serialization\EnumDataContract.cs (1)
148
DataContract.
ThrowInvalidDataContractException
(