184 references to GetClrTypeFullName
System.Private.DataContractSerialization (184)
System\Runtime\Serialization\AccessorBuilder.cs (2)
91
throw new InvalidOperationException(SR.Format(SR.InvalidMember, DataContract.
GetClrTypeFullName
(memberInfo.DeclaringType!), memberInfo.Name));
155
throw new InvalidOperationException(SR.Format(SR.InvalidMember, DataContract.
GetClrTypeFullName
(memberInfo.DeclaringType!), memberInfo.Name));
System\Runtime\Serialization\ClassDataContract.cs (37)
265
DataContract.
GetClrTypeFullName
(declaringType),
413
DataContract.
GetClrTypeFullName
(UnderlyingType)),
427
DataContract.
GetClrTypeFullName
(UnderlyingType)),
439
DataContract.
GetClrTypeFullName
(UnderlyingType)),
451
DataContract.
GetClrTypeFullName
(UnderlyingType),
464
DataContract.
GetClrTypeFullName
(UnderlyingType),
483
DataContract.
GetClrTypeFullName
(UnderlyingType),
491
DataContract.
GetClrTypeFullName
(UnderlyingType),
519
DataContract.
GetClrTypeFullName
(UnderlyingType)),
534
DataContract.
GetClrTypeFullName
(UnderlyingType),
547
DataContract.
GetClrTypeFullName
(UnderlyingType),
566
DataContract.
GetClrTypeFullName
(UnderlyingType),
574
DataContract.
GetClrTypeFullName
(UnderlyingType),
637
throw new InvalidDataContractException(SR.Format(SR.ISerializableCannotHaveDataContract, DataContract.
GetClrTypeFullName
(type)));
659
DataContract.
GetClrTypeFullName
(type), DataContract.
GetClrTypeFullName
(baseType)));
670
throw new InvalidDataContractException(SR.Format(SR.OnlyDataContractTypesCanHaveExtensionData, DataContract.
GetClrTypeFullName
(type)));
757
DataContract.
GetClrTypeFullName
(type),
759
DataContract.
GetClrTypeFullName
(BaseClassContract.UnderlyingType),
783
DataContract.
GetClrTypeFullName
(type),
824
ThrowInvalidDataContractException(SR.Format(SR.TooManyDataMembers, DataContract.
GetClrTypeFullName
(member.DeclaringType!), member.Name));
849
ThrowInvalidDataContractException(SR.Format(SR.InvalidMember, DataContract.
GetClrTypeFullName
(type), member.Name));
855
ThrowInvalidDataContractException(SR.Format(SR.InvalidDataMemberName, member.Name, DataContract.
GetClrTypeFullName
(type)));
868
DataContract.
GetClrTypeFullName
(member.DeclaringType!),
887
ThrowInvalidDataContractException(SR.Format(SR.TooManyIgnoreDataMemberAttributes, DataContract.
GetClrTypeFullName
(member.DeclaringType!), member.Name));
938
DataContract.
GetClrTypeFullName
(member.DeclaringType!),
1106
ThrowInvalidDataContractException(SR.Format(SR.DuplicateExtensionDataSetMethod, method, _extensionDataSetMethod, DataContract.
GetClrTypeFullName
(method.DeclaringType)));
1108
DataContract.ThrowInvalidDataContractException(SR.Format(SR.ExtensionDataSetMustReturnVoid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method), method.DeclaringType);
1110
DataContract.ThrowInvalidDataContractException(SR.Format(SR.ExtensionDataSetParameterInvalid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method, Globals.TypeOfExtensionDataObject), method.DeclaringType);
1123
DataContract.ThrowInvalidDataContractException(SR.Format(SR.DuplicateCallback, method, currentCallback, DataContract.
GetClrTypeFullName
(method.DeclaringType), attributeType), method.DeclaringType);
1125
DataContract.ThrowInvalidDataContractException(SR.Format(SR.DuplicateAttribute, prevAttributeType, attributeType, DataContract.
GetClrTypeFullName
(method.DeclaringType), method), method.DeclaringType);
1127
DataContract.ThrowInvalidDataContractException(SR.Format(SR.CallbacksCannotBeVirtualMethods, method, DataContract.
GetClrTypeFullName
(method.DeclaringType), attributeType), method.DeclaringType);
1131
DataContract.ThrowInvalidDataContractException(SR.Format(SR.CallbackMustReturnVoid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method), method.DeclaringType);
1133
DataContract.ThrowInvalidDataContractException(SR.Format(SR.CallbackParameterInvalid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
1248
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.SerializationInfo_ConstructorNotFound, DataContract.
GetClrTypeFullName
(UnderlyingType)));
1265
throw new InvalidDataContractException(SR.Format(SR.NonAttributedSerializableTypesMustHaveDefaultConstructor, DataContract.
GetClrTypeFullName
(type)));
1363
boundClassContract.XmlName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(xmlName.Name), new GenericNameProvider(DataContract.
GetClrTypeFullName
(UnderlyingType), genericParams)), xmlName.Namespace);
System\Runtime\Serialization\CodeGenerator.cs (9)
695
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.CanOnlyStoreIntoArgOrLocGot0, DataContract.
GetClrTypeFullName
(var.GetType())));
852
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.UnknownConstantType, DataContract.
GetClrTypeFullName
(valueType)));
991
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ArrayTypeIsNotSupported_GeneratingCode, DataContract.
GetClrTypeFullName
(arrayElementType)));
1029
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ArrayTypeIsNotSupported_GeneratingCode, DataContract.
GetClrTypeFullName
(arrayElementType)));
1159
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.NoConversionPossibleTo, DataContract.
GetClrTypeFullName
(target)));
1172
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IsNotAssignableFrom, DataContract.
GetClrTypeFullName
(target), DataContract.
GetClrTypeFullName
(source)));
1192
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IsNotAssignableFrom, DataContract.
GetClrTypeFullName
(target), DataContract.
GetClrTypeFullName
(source)));
System\Runtime\Serialization\CollectionDataContract.cs (25)
355
throw new InvalidDataContractException(SR.Format(SR.GetOnlyCollectionMustHaveAddMethod,
GetClrTypeFullName
(UnderlyingType)));
365
throw new InvalidDataContractException(SR.Format(SR.GetOnlyCollectionMustHaveAddMethod,
GetClrTypeFullName
(UnderlyingType)));
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));
548
throw new InvalidDataContractException(SR.Format(SR.CollectionMustHaveGetEnumeratorMethod,
GetClrTypeFullName
(type)));
550
throw new InvalidDataContractException(SR.Format(SR.CollectionMustHaveItemType,
GetClrTypeFullName
(type)));
571
throw new InvalidDataContractException(SR.Format(SR.CollectionMustHaveAddMethod, DataContract.
GetClrTypeFullName
(type)));
614
SR.Format(SR.DupKeyValueName, DataContract.
GetClrTypeFullName
(UnderlyingType), KeyName),
1182
SR.CollectionTypeDoesNotHaveAddMethod, DataContract.
GetClrTypeFullName
(itemType), ref dataContract);
1188
GetReadOnlyCollectionExceptionMessages(type, hasCollectionDataContract, SR.CollectionTypeDoesNotHaveAddMethod, DataContract.
GetClrTypeFullName
(itemType), out serializationExceptionMessage, out deserializationExceptionMessage);
1260
throw new InvalidDataContractException(GetInvalidCollectionMessage(message, SR.Format(SR.InvalidCollectionDataContract, DataContract.
GetClrTypeFullName
(type)), param));
1267
dataContract = new CollectionDataContract(type, GetInvalidCollectionMessage(message, SR.Format(SR.InvalidCollectionType, DataContract.
GetClrTypeFullName
(type)), param));
1276
serializationExceptionMessage = GetInvalidCollectionMessage(message, SR.Format(hasCollectionDataContract ? SR.InvalidCollectionDataContract : SR.InvalidCollectionType,
GetClrTypeFullName
(type)), param);
1277
deserializationExceptionMessage = GetInvalidCollectionMessage(message, SR.Format(SR.ReadOnlyCollectionDeserialization,
GetClrTypeFullName
(type)), param);
1408
boundCollectionContract.XmlName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(XmlName.Name), new GenericNameProvider(DataContract.
GetClrTypeFullName
(UnderlyingType), paramContracts)),
1430
throw new InvalidDataContractException(SR.Format(SR.CollectionTypeDoesNotHaveDefaultCtor, DataContract.
GetClrTypeFullName
(UnderlyingType)));
1456
DataContract.
GetClrTypeFullName
(UnderlyingType)),
1467
DataContract.
GetClrTypeFullName
(ItemType)),
1478
DataContract.
GetClrTypeFullName
(UnderlyingType)),
1489
DataContract.
GetClrTypeFullName
(UnderlyingType),
1512
DataContract.
GetClrTypeFullName
(UnderlyingType)),
1523
DataContract.
GetClrTypeFullName
(ItemType)),
System\Runtime\Serialization\DataContract.cs (26)
98
throw new SerializationException(SR.Format(SR.ErrorDeserializing, SR.Format(SR.ErrorTypeInfo, DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType)), SR.Format(SR.NoSetMethodForProperty, string.Empty, string.Empty)));
177
throw new InvalidDataContractException(SR.Format(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(GetType()), DataContract.
GetClrTypeFullName
(UnderlyingType)));
184
throw new InvalidDataContractException(SR.Format(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(GetType()), DataContract.
GetClrTypeFullName
(UnderlyingType)));
191
throw new InvalidDataContractException(SR.Format(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(GetType()), DataContract.
GetClrTypeFullName
(UnderlyingType)));
196
throw new InvalidDataContractException(SR.Format(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(GetType()), DataContract.
GetClrTypeFullName
(UnderlyingType)));
1162
throw new InvalidDataContractException(SR.Format(SR.RecursiveCollectionType,
GetClrTypeFullName
(itemType)));
1284
throw new InvalidDataContractException(SR.Format(SR.InvalidDataContractName, DataContract.
GetClrTypeFullName
(type)));
1296
throw new InvalidDataContractException(SR.Format(SR.InvalidDataContractNamespace, DataContract.
GetClrTypeFullName
(type)));
1364
throw new InvalidDataContractException(SR.Format(SR.TooManyDataContracts, DataContract.
GetClrTypeFullName
(type)));
1389
throw new InvalidDataContractException(SR.Format(SR.TooManyCollectionContracts, DataContract.
GetClrTypeFullName
(type)));
1396
throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractName, DataContract.
GetClrTypeFullName
(type)));
1408
throw new InvalidDataContractException(SR.Format(SR.InvalidCollectionContractNamespace, DataContract.
GetClrTypeFullName
(type)));
1490
typeName = DataContract.
GetClrTypeFullName
(type).Substring(nsLen).Replace('+', '.');
1979
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeOneScheme, DataContract.
GetClrTypeFullName
(type)), type);
1989
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeOneScheme, DataContract.
GetClrTypeFullName
(type)), type);
1995
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeNoData, DataContract.
GetClrTypeFullName
(type)), type);
1999
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeEmptyString, DataContract.
GetClrTypeFullName
(type)), type);
2003
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeUnknownMethod, methodName, DataContract.
GetClrTypeFullName
(type)), type);
2006
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeReturnType, DataContract.
GetClrTypeFullName
(type), methodName), type);
2011
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeMethodNull, DataContract.
GetClrTypeFullName
(type)), type);
2017
DataContract.ThrowInvalidDataContractException(SR.Format(SR.KnownTypeAttributeValidMethodTypes, DataContract.
GetClrTypeFullName
(type)), type);
2293
: this(DataContract.
GetClrTypeFullName
(type.GetGenericTypeDefinition()), type.GetGenericArguments())
System\Runtime\Serialization\DataContractSet.cs (6)
114
bool typeNamesEqual = (DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType) == DataContract.
GetClrTypeFullName
(dataContractInSet.UnderlyingType));
115
throw new InvalidOperationException(SR.Format(SR.DupTypeContractInDataContractSet, (typeNamesEqual ? dataContract.UnderlyingType.AssemblyQualifiedName : DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType)), (typeNamesEqual ? dataContractInSet.UnderlyingType.AssemblyQualifiedName : DataContract.
GetClrTypeFullName
(dataContractInSet.UnderlyingType)), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
275
DataContract.
GetClrTypeFullName
(dataMemberType),
276
(dataMember.MemberInfo.DeclaringType != null) ? DataContract.
GetClrTypeFullName
(dataMember.MemberInfo.DeclaringType) : dataMember.MemberInfo.DeclaringType,
System\Runtime\Serialization\EnumDataContract.cs (8)
150
DataContract.
GetClrTypeFullName
(type),
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));
321
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.InvalidEnumValueOnWrite, value, DataContract.
GetClrTypeFullName
(UnderlyingType)));
327
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.InvalidEnumValueOnWrite, value, DataContract.
GetClrTypeFullName
(UnderlyingType)));
367
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.InvalidEnumValueOnRead, stringValue, DataContract.
GetClrTypeFullName
(UnderlyingType)));
386
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.InvalidEnumValueOnRead, value.Substring(index, count), DataContract.
GetClrTypeFullName
(UnderlyingType)));
System\Runtime\Serialization\ExtensionDataReader.cs (1)
652
throw new XmlException(SR.Format(SR.InvalidDataNode, DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
644
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType),
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
164
throw new SerializationException(SR.Format(SR.JsonDuplicateMemberNames, DataContract.
GetClrTypeFullName
(_traditionalClassDataContract.UnderlyingType), _traditionalClassDataContract.MemberNames[i].Value));
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
72
throw new InvalidDataContractException(SR.Format(SR.GetOnlyCollectionMustHaveAddMethod, DataContract.
GetClrTypeFullName
(this.TraditionalDataContract.UnderlyingType)));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (6)
456
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.SerializationInfo_ConstructorNotFound, DataContract.
GetClrTypeFullName
(classContract.UnderlyingType)));
493
ThrowSerializationException(SR.Format(SR.ValueTypeCannotBeNull, DataContract.
GetClrTypeFullName
(type)));
509
ThrowSerializationException(SR.Format(SR.ValueTypeCannotHaveId, DataContract.
GetClrTypeFullName
(type)));
532
ThrowSerializationException(SR.Format(SR.ValueTypeCannotHaveRef, DataContract.
GetClrTypeFullName
(type)));
763
DataContract.
GetClrTypeFullName
(collectionContract.UnderlyingType),
764
DataContract.
GetClrTypeFullName
(keyType)));
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (2)
182
DataContract.
GetClrTypeFullName
(collectionContract.UnderlyingType),
183
DataContract.
GetClrTypeFullName
(keyType))
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
316
SR.Format(SR.JsonDuplicateMemberInInput, DataContract.
GetClrTypeFullName
(obj.GetType()), memberNames[memberIndex]));
337
SR.JsonOneRequiredMemberNotFound, DataContract.
GetClrTypeFullName
(obj.GetType()), stringBuilder.ToString()));
342
SR.JsonRequiredMembersNotFound, DataContract.
GetClrTypeFullName
(obj.GetType()), stringBuilder.ToString()));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (3)
275
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.DcTypeNotFoundOnSerialize, DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
342
if (DataContract.
GetClrTypeFullName
(objType) != serInfo.FullTypeName)
344
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ChangingFullTypeNameNotSupported, serInfo.FullTypeName, DataContract.
GetClrTypeFullName
(objType)));
System\Runtime\Serialization\ReflectionReader.cs (4)
291
throw new SerializationException(SR.Format(SR.ValueTypeCannotHaveId, DataContract.
GetClrTypeFullName
(type)));
307
throw new SerializationException(SR.Format(SR.ValueTypeCannotHaveRef, DataContract.
GetClrTypeFullName
(type)));
319
throw new SerializationException(SR.Format(SR.ValueTypeCannotBeNull, DataContract.
GetClrTypeFullName
(type)));
608
throw new InvalidDataContractException(SR.Format(SR.CollectionMustHaveAddMethod, DataContract.
GetClrTypeFullName
(collectionContract.UnderlyingType)));
System\Runtime\Serialization\SchemaExporter.cs (12)
278
typeName = DataContract.
GetClrTypeFullName
(clrType).Substring(nsLen).Replace('+', '.');
537
throw new InvalidDataContractException(SR.Format(SR.MissingSchemaType, typeQName, DataContract.
GetClrTypeFullName
(clrType)));
601
throw new InvalidDataContractException(SR.Format(SR.InvalidXmlDataContractName, DataContract.
GetClrTypeFullName
(type)));
627
throw new InvalidDataContractException(SR.Format(SR.InvalidGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType)));
634
throw new InvalidDataContractException(SR.Format(SR.MissingGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType), methodName));
637
throw new InvalidDataContractException(SR.Format(SR.InvalidReturnTypeOnGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType), methodName, DataContract.
GetClrTypeFullName
(getMethod.ReturnType), DataContract.
GetClrTypeFullName
(Globals.TypeOfXmlQualifiedName), typeof(XmlSchemaType)));
644
throw new InvalidDataContractException(SR.Format(SR.InvalidNonNullReturnValueByIsAny, DataContract.
GetClrTypeFullName
(clrType), methodName));
661
DataContract.GetDefaultXmlName(DataContract.
GetClrTypeFullName
(clrType), out typeName, out typeNs);
682
throw new InvalidDataContractException(SR.Format(SR.MissingSchemaType, typeName, DataContract.
GetClrTypeFullName
(clrType)));
707
throw new InvalidDataContractException(SR.Format(SR.InvalidReturnSchemaOnGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType)));
System\Runtime\Serialization\XmlDataContract.cs (7)
141
throw new InvalidDataContractException(SR.Format(SR.IXmlSerializableCannotHaveDataContract, DataContract.
GetClrTypeFullName
(type)));
143
throw new InvalidDataContractException(SR.Format(SR.IXmlSerializableCannotHaveCollectionDataContract, DataContract.
GetClrTypeFullName
(type)));
177
throw new InvalidDataContractException(SR.Format(SR.IsAnyCannotHaveXmlRoot, DataContract.
GetClrTypeFullName
(UnderlyingType!)));
254
throw new InvalidDataContractException(SR.Format(SR.IXmlSerializableMustHaveDefaultConstructor, DataContract.
GetClrTypeFullName
(UnderlyingType)));
278
ilg.BeginMethod("Create" + DataContract.
GetClrTypeFullName
(type), typeof(CreateXmlSerializableDelegate), memberAccessFlag);
343
throw new SecurityException(SR.Format(SR.PartialTrustIXmlSerializableTypeNotPublic, DataContract.
GetClrTypeFullName
(UnderlyingType)),
353
throw new SecurityException(SR.Format(SR.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.
GetClrTypeFullName
(UnderlyingType)),
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
530
ThrowValidationException(SR.Format(SR.ValueTypeCannotBeNull, DataContract.
GetClrTypeFullName
(type)));
546
ThrowValidationException(SR.Format(SR.ValueTypeCannotHaveId, DataContract.
GetClrTypeFullName
(type)));
569
ThrowValidationException(SR.Format(SR.ValueTypeCannotHaveRef, DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
458
string typeInfo = (type == null) ? string.Empty : SR.Format(SR.ErrorTypeInfo, DataContract.
GetClrTypeFullName
(type));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (8)
58
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.NullValueReturnedForGetOnlyCollection, DataContract.
GetClrTypeFullName
(type)));
64
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ArrayExceededSize, arraySize, DataContract.
GetClrTypeFullName
(type)));
119
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ErrorDeserializing, SR.Format(SR.ErrorTypeInfo, DataContract.
GetClrTypeFullName
(declaredType)), SR.Format(SR.XmlStartElementExpected, Globals.RefLocalName)));
180
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.FactoryTypeNotISerializable, DataContract.
GetClrTypeFullName
(factoryDataContract.UnderlyingType), DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType)));
365
string oldType = (oldObj != null) ? DataContract.
GetClrTypeFullName
(oldObj.GetType()) : SR.UnknownNullType;
366
string newType = (newObj != null) ? DataContract.
GetClrTypeFullName
(newObj.GetType()) : SR.UnknownNullType;
457
DataContract.
GetClrTypeFullName
(typeof(T))));
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (2)
69
throw new InvalidDataContractException(SR.Format(SR.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser, DataContract.
GetClrTypeFullName
(declaredType)));
112
DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (10)
247
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.DcTypeNotFoundOnSerialize, DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType), dataContract.XmlName.Name, dataContract.XmlName.Namespace));
382
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.CannotSerializeObjectWithCycles, DataContract.
GetClrTypeFullName
(obj.GetType())));
498
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.UnknownXmlType, DataContract.
GetClrTypeFullName
(obj.GetType())));
536
if (DataContract.
GetClrTypeFullName
(objType) != serInfo.FullTypeName)
605
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedFalse, DataContract.
GetClrTypeFullName
(DataContractResolver.GetType()), DataContract.
GetClrTypeFullName
(objectType)));
615
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedNull, DataContract.
GetClrTypeFullName
(DataContractResolver.GetType()), DataContract.
GetClrTypeFullName
(objectType)));
620
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.ResolveTypeReturnedNull, DataContract.
GetClrTypeFullName
(DataContractResolver.GetType()), DataContract.
GetClrTypeFullName
(objectType)));
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (1)
210
DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
213
DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\XmlSerializableWriter.cs (3)
27
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IXmlSerializableMissingEndElements, (_obj == null ? string.Empty : DataContract.
GetClrTypeFullName
(_obj.GetType()))));
56
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.
GetClrTypeFullName
(_obj.GetType()))));
64
throw XmlObjectSerializer.CreateSerializationException(SR.Format(SR.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.
GetClrTypeFullName
(_obj.GetType()))));
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
274
return new InvalidDataContractException(SR.Format(SR.InvalidPrimitiveType_Serialization, DataContract.
GetClrTypeFullName
(type)));