205 references to GetClrTypeFullName
System.Runtime.Serialization (205)
System\Runtime\Serialization\ClassDataContract.cs (37)
333
DataContract.
GetClrTypeFullName
(declaringType),
466
DataContract.
GetClrTypeFullName
(UnderlyingType)),
482
DataContract.
GetClrTypeFullName
(UnderlyingType)),
496
DataContract.
GetClrTypeFullName
(UnderlyingType)),
510
DataContract.
GetClrTypeFullName
(UnderlyingType),
524
DataContract.
GetClrTypeFullName
(UnderlyingType),
544
DataContract.
GetClrTypeFullName
(UnderlyingType),
553
DataContract.
GetClrTypeFullName
(UnderlyingType),
580
DataContract.
GetClrTypeFullName
(UnderlyingType)),
596
DataContract.
GetClrTypeFullName
(this.UnderlyingType),
610
DataContract.
GetClrTypeFullName
(UnderlyingType),
630
DataContract.
GetClrTypeFullName
(UnderlyingType),
639
DataContract.
GetClrTypeFullName
(UnderlyingType),
709
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.ISerializableCannotHaveDataContract, DataContract.
GetClrTypeFullName
(type))));
725
DataContract.
GetClrTypeFullName
(type), DataContract.
GetClrTypeFullName
(baseType))));
732
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.OnlyDataContractTypesCanHaveExtensionData, DataContract.
GetClrTypeFullName
(type))));
812
DataContract.
GetClrTypeFullName
(type),
814
DataContract.
GetClrTypeFullName
(this.BaseContract.UnderlyingType),
838
DataContract.
GetClrTypeFullName
(type),
874
ThrowInvalidDataContractException(SR.GetString(SR.TooManyDataMembers, DataContract.
GetClrTypeFullName
(member.DeclaringType), member.Name));
901
ThrowInvalidDataContractException(SR.GetString(SR.InvalidMember, DataContract.
GetClrTypeFullName
(type), member.Name));
907
ThrowInvalidDataContractException(SR.GetString(SR.InvalidDataMemberName, member.Name, DataContract.
GetClrTypeFullName
(type)));
920
DataContract.
GetClrTypeFullName
(member.DeclaringType),
939
ThrowInvalidDataContractException(SR.GetString(SR.TooManyIgnoreDataMemberAttributes, DataContract.
GetClrTypeFullName
(member.DeclaringType), member.Name));
988
DataContract.
GetClrTypeFullName
(member.DeclaringType),
1144
ThrowInvalidDataContractException(SR.GetString(SR.DuplicateExtensionDataSetMethod, method, extensionDataSetMethod, DataContract.
GetClrTypeFullName
(method.DeclaringType)));
1146
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.ExtensionDataSetMustReturnVoid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method), method.DeclaringType);
1148
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.ExtensionDataSetParameterInvalid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method, Globals.TypeOfExtensionDataObject), method.DeclaringType);
1159
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.DuplicateCallback, method, currentCallback, DataContract.
GetClrTypeFullName
(method.DeclaringType), attributeType), method.DeclaringType);
1161
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.DuplicateAttribute, prevAttributeType, attributeType, DataContract.
GetClrTypeFullName
(method.DeclaringType), method), method.DeclaringType);
1163
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.CallbacksCannotBeVirtualMethods, method, DataContract.
GetClrTypeFullName
(method.DeclaringType), attributeType), method.DeclaringType);
1167
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.CallbackMustReturnVoid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method), method.DeclaringType);
1169
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.CallbackParameterInvalid, DataContract.
GetClrTypeFullName
(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
1309
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.
GetClrTypeFullName
(UnderlyingType))));
1326
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.NonAttributedSerializableTypesMustHaveDefaultConstructor, DataContract.
GetClrTypeFullName
(type))));
1432
boundClassContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(stableName.Name), new GenericNameProvider(DataContract.
GetClrTypeFullName
(this.UnderlyingType), genericParams)), stableName.Namespace);
System\Runtime\Serialization\CodeExporter.cs (23)
291
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(dataContract.GetType()), DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
563
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.TypeMustBeIXmlSerializable, DataContract.
GetClrTypeFullName
(type), DataContract.
GetClrTypeFullName
(Globals.TypeOfIXmlSerializable), dataContract.StableName.Name, dataContract.StableName.Namespace)));
822
CodeAttributeDeclaration dataContractAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfDataContractAttribute));
887
CodeAttributeDeclaration dataMemberAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfDataMemberAttribute));
900
CodeAttributeDeclaration optionalFieldAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfOptionalFieldAttribute));
1015
CodeAttributeDeclaration knownTypeAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfKnownTypeAttribute));
1037
type.BaseTypes.Add(DataContract.
GetClrTypeFullName
(Globals.TypeOfIExtensibleDataObject));
1041
CodeAttributeDeclaration nonSerializedAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfNonSerializedAttribute));
1072
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.
GetClrTypeFullName
(baseType))));
1086
type.CustomAttributes.Add(new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfFlagsAttribute)));
1091
CodeAttributeDeclaration dataContractAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfDataContractAttribute));
1110
CodeAttributeDeclaration enumMemberAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfEnumMemberAttribute));
1149
type.BaseTypes.Add(DataContract.
GetClrTypeFullName
(Globals.TypeOfISerializable));
1225
expectedTypeName, expectedTypeNs, DataContract.
GetClrTypeFullName
(Globals.TypeOfIListGeneric), DataContract.
GetClrTypeFullName
(Globals.TypeOfICollectionGeneric))));
1232
CodeAttributeDeclaration collectionContractAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfCollectionDataContractAttribute));
1266
type.BaseTypes.Add(DataContract.
GetClrTypeFullName
(Globals.TypeOfIXmlSerializable));
1276
DataContract.
GetClrTypeFullName
(Globals.TypeOfXmlSchemaProviderAttribute),
1284
DataContract.
GetClrTypeFullName
(Globals.TypeOfXmlSchemaProviderAttribute),
1303
CodeAttributeDeclaration xmlRootAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfXmlRootAttribute));
1344
CodeAttributeDeclaration namespaceAttribute = new CodeAttributeDeclaration(DataContract.
GetClrTypeFullName
(Globals.TypeOfContractNamespaceAttribute));
System\Runtime\Serialization\CodeGenerator.cs (9)
883
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CanOnlyStoreIntoArgOrLocGot0, DataContract.
GetClrTypeFullName
(var.GetType()))));
1099
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.UnknownConstantType, DataContract.
GetClrTypeFullName
(valueType))));
1415
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ArrayTypeIsNotSupported, DataContract.
GetClrTypeFullName
(arrayElementType))));
1478
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ArrayTypeIsNotSupported, DataContract.
GetClrTypeFullName
(arrayElementType))));
1654
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.NoConversionPossibleTo, DataContract.
GetClrTypeFullName
(target))));
1669
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IsNotAssignableFrom, DataContract.
GetClrTypeFullName
(target), DataContract.
GetClrTypeFullName
(source))));
1690
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IsNotAssignableFrom, DataContract.
GetClrTypeFullName
(target), DataContract.
GetClrTypeFullName
(source))));
System\Runtime\Serialization\CollectionDataContract.cs (24)
458
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GetOnlyCollectionMustHaveAddMethod, DataContract.
GetClrTypeFullName
(this.UnderlyingType))));
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)));
614
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.CollectionMustHaveGetEnumeratorMethod, DataContract.
GetClrTypeFullName
(type))));
616
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.CollectionMustHaveItemType, DataContract.
GetClrTypeFullName
(type))));
632
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.CollectionMustHaveAddMethod, DataContract.
GetClrTypeFullName
(type))));
672
SR.GetString(SR.DupKeyValueName, DataContract.
GetClrTypeFullName
(UnderlyingType), KeyName),
1064
SR.CollectionTypeDoesNotHaveAddMethod, DataContract.
GetClrTypeFullName
(itemType), ref dataContract);
1069
GetReadOnlyCollectionExceptionMessages(type, hasCollectionDataContract, SR.CollectionTypeDoesNotHaveAddMethod, DataContract.
GetClrTypeFullName
(itemType), out serializationExceptionMessage, out deserializationExceptionMessage);
1135
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(GetInvalidCollectionMessage(message, SR.GetString(SR.InvalidCollectionDataContract, DataContract.
GetClrTypeFullName
(type)), param)));
1142
dataContract = new CollectionDataContract(type, GetInvalidCollectionMessage(message, SR.GetString(SR.InvalidCollectionType, DataContract.
GetClrTypeFullName
(type)), param));
1151
serializationExceptionMessage = GetInvalidCollectionMessage(message, SR.GetString(hasCollectionDataContract ? SR.InvalidCollectionDataContract : SR.InvalidCollectionType, DataContract.
GetClrTypeFullName
(type)), param);
1152
deserializationExceptionMessage = GetInvalidCollectionMessage(message, SR.GetString(SR.ReadOnlyCollectionDeserialization, DataContract.
GetClrTypeFullName
(type)), param);
1247
boundCollectionContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(this.StableName.Name), new GenericNameProvider(DataContract.
GetClrTypeFullName
(this.UnderlyingType), paramContracts)),
1287
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.CollectionTypeDoesNotHaveDefaultCtor, DataContract.
GetClrTypeFullName
(this.UnderlyingType))));
1315
DataContract.
GetClrTypeFullName
(UnderlyingType)),
1327
DataContract.
GetClrTypeFullName
(ItemType)),
1339
DataContract.
GetClrTypeFullName
(UnderlyingType)),
1351
DataContract.
GetClrTypeFullName
(UnderlyingType),
1374
DataContract.
GetClrTypeFullName
(UnderlyingType)),
1386
DataContract.
GetClrTypeFullName
(ItemType)),
System\Runtime\Serialization\DataContract.cs (22)
85
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SR.GetString(SR.ClassDataContractReturnedForGetOnlyCollection, DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
218
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(this.GetType()), DataContract.
GetClrTypeFullName
(UnderlyingType))));
223
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.UnexpectedContractType, DataContract.
GetClrTypeFullName
(this.GetType()), DataContract.
GetClrTypeFullName
(UnderlyingType))));
1326
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.RecursiveCollectionType, DataContract.
GetClrTypeFullName
(itemType))));
1457
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidDataContractName, DataContract.
GetClrTypeFullName
(type))));
1469
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidDataContractNamespace, DataContract.
GetClrTypeFullName
(type))));
1570
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractName, DataContract.
GetClrTypeFullName
(type))));
1582
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidCollectionContractNamespace, DataContract.
GetClrTypeFullName
(type))));
1655
typeName = DataContract.
GetClrTypeFullName
(type).Substring(nsLen).Replace('+', '.');
1830
return DataContract.
GetClrTypeFullName
(type);
2079
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeOneScheme, DataContract.
GetClrTypeFullName
(type)), type);
2089
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeOneScheme, DataContract.
GetClrTypeFullName
(type)), type);
2095
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeNoData, DataContract.
GetClrTypeFullName
(type)), type);
2099
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeEmptyString, DataContract.
GetClrTypeFullName
(type)), type);
2103
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeUnknownMethod, methodName, DataContract.
GetClrTypeFullName
(type)), type);
2106
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeReturnType, DataContract.
GetClrTypeFullName
(type), methodName), type);
2111
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeMethodNull, DataContract.
GetClrTypeFullName
(type)), type);
2117
DataContract.ThrowInvalidDataContractException(SR.GetString(SR.KnownTypeAttributeValidMethodTypes, DataContract.
GetClrTypeFullName
(type)), type);
2217
if (collectionElementTypeName.StartsWith(DataContract.
GetClrTypeFullName
(rootType), StringComparison.Ordinal))
2463
: this(DataContract.
GetClrTypeFullName
(type.GetGenericTypeDefinition()), type.GetGenericArguments())
System\Runtime\Serialization\DataContractSet.cs (6)
137
bool typeNamesEqual = (DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType) == DataContract.
GetClrTypeFullName
(dataContractInSet.UnderlyingType));
138
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.DupTypeContractInDataContractSet, (typeNamesEqual ? dataContract.UnderlyingType.AssemblyQualifiedName : DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType)), (typeNamesEqual ? dataContractInSet.UnderlyingType.AssemblyQualifiedName : DataContract.
GetClrTypeFullName
(dataContractInSet.UnderlyingType)), dataContract.StableName.Name, dataContract.StableName.Namespace)));
270
DataContract.
GetClrTypeFullName
(dataMemberType), DataContract.
GetClrTypeFullName
(dataMember.MemberInfo.DeclaringType), dataMember.MemberInfo.Name)));
System\Runtime\Serialization\EnumDataContract.cs (8)
212
DataContract.
GetClrTypeFullName
(type),
287
ThrowInvalidDataContractException(SR.GetString(SR.TooManyEnumMembers, DataContract.
GetClrTypeFullName
(field.DeclaringType), field.Name));
294
ThrowInvalidDataContractException(SR.GetString(SR.InvalidEnumMemberValue, field.Name, DataContract.
GetClrTypeFullName
(type)));
305
ThrowInvalidDataContractException(SR.GetString(SR.DataMemberOnEnumField, DataContract.
GetClrTypeFullName
(field.DeclaringType), field.Name));
372
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnWrite, value, DataContract.
GetClrTypeFullName
(UnderlyingType))));
378
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnWrite, value, DataContract.
GetClrTypeFullName
(UnderlyingType))));
418
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnRead, stringValue, DataContract.
GetClrTypeFullName
(UnderlyingType))));
437
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.InvalidEnumValueOnRead, value.Substring(index, count), DataContract.
GetClrTypeFullName
(UnderlyingType))));
System\Runtime\Serialization\ExtensionDataReader.cs (1)
655
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.InvalidDataNode, DataContract.
GetClrTypeFullName
(type))));
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
590
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType),
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
174
DataContract.
GetClrTypeFullName
(traditionalClassDataContract.UnderlyingType), traditionalClassDataContract.MemberNames[i].Value)));
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
70
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GetOnlyCollectionMustHaveAddMethod, DataContract.
GetClrTypeFullName
(this.TraditionalDataContract.UnderlyingType))));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (6)
509
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.
GetClrTypeFullName
(classContract.UnderlyingType))));
544
ThrowSerializationException(SR.GetString(SR.ValueTypeCannotBeNull, DataContract.
GetClrTypeFullName
(type)));
560
ThrowSerializationException(SR.GetString(SR.ValueTypeCannotHaveId, DataContract.
GetClrTypeFullName
(type)));
583
ThrowSerializationException(SR.GetString(SR.ValueTypeCannotHaveRef, DataContract.
GetClrTypeFullName
(type)));
802
DataContract.
GetClrTypeFullName
(collectionContract.UnderlyingType),
803
DataContract.
GetClrTypeFullName
(keyType)));
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
257
SR.JsonOneRequiredMemberNotFound, DataContract.
GetClrTypeFullName
(obj.GetType()), stringBuilder.ToString())));
262
SR.JsonRequiredMembersNotFound, DataContract.
GetClrTypeFullName
(obj.GetType()), stringBuilder.ToString())));
271
SR.GetString(SR.JsonDuplicateMemberInInput, DataContract.
GetClrTypeFullName
(obj.GetType()), memberNames[memberIndex])));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (3)
167
if (DataContract.
GetClrTypeFullName
(objType) != serInfo.FullTypeName)
169
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ChangingFullTypeNameNotSupported, serInfo.FullTypeName, DataContract.
GetClrTypeFullName
(objType))));
356
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
System\Runtime\Serialization\NetDataContractSerializer.cs (1)
302
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.TypeCannotBeForwardedFrom, DataContract.
GetClrTypeFullName
(clrType), clrType.Assembly.FullName, clrAssemblyName)));
System\Runtime\Serialization\SchemaExporter.cs (12)
284
typeName = DataContract.
GetClrTypeFullName
(clrType).Substring(nsLen).Replace('+', '.');
530
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.MissingSchemaType, typeQName, DataContract.
GetClrTypeFullName
(clrType))));
605
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidXmlDataContractName, DataContract.
GetClrTypeFullName
(type))));
629
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType))));
636
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.MissingGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType), methodName)));
639
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidReturnTypeOnGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType), methodName, DataContract.
GetClrTypeFullName
(getMethod.ReturnType), DataContract.
GetClrTypeFullName
(Globals.TypeOfXmlQualifiedName), typeof(XmlSchemaType))));
646
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidNonNullReturnValueByIsAny, DataContract.
GetClrTypeFullName
(clrType), methodName)));
664
DataContract.GetDefaultStableName(DataContract.
GetClrTypeFullName
(clrType), out typeName, out typeNs);
687
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.MissingSchemaType, typeName, DataContract.
GetClrTypeFullName
(clrType))));
709
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidReturnSchemaOnGetSchemaMethod, DataContract.
GetClrTypeFullName
(clrType))));
System\Runtime\Serialization\SurrogateDataContract.cs (1)
114
DataContract.GetDefaultStableName(DataContract.
GetClrTypeFullName
(type), out name, out ns);
System\Runtime\Serialization\XmlDataContract.cs (7)
198
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.IXmlSerializableCannotHaveDataContract, DataContract.
GetClrTypeFullName
(type))));
200
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.IXmlSerializableCannotHaveCollectionDataContract, DataContract.
GetClrTypeFullName
(type))));
234
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.IsAnyCannotHaveXmlRoot, DataContract.
GetClrTypeFullName
(UnderlyingType))));
318
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.IXmlSerializableMustHaveDefaultConstructor, DataContract.
GetClrTypeFullName
(type))));
345
ilg.BeginMethod("Create" + DataContract.
GetClrTypeFullName
(type), typeof(CreateXmlSerializableDelegate), memberAccessFlag);
384
new SecurityException(SR.GetString(SR.PartialTrustIXmlSerializableTypeNotPublic, DataContract.
GetClrTypeFullName
(UnderlyingType)),
395
new SecurityException(SR.GetString(SR.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.
GetClrTypeFullName
(UnderlyingType)),
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
500
ThrowValidationException(SR.GetString(SR.ValueTypeCannotBeNull, DataContract.
GetClrTypeFullName
(type)));
516
ThrowValidationException(SR.GetString(SR.ValueTypeCannotHaveId, DataContract.
GetClrTypeFullName
(type)));
539
ThrowValidationException(SR.GetString(SR.ValueTypeCannotHaveRef, DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
418
return (type == null) ? string.Empty : DataContract.
GetClrTypeFullName
(type);
423
string typeInfo = (type == null) ? string.Empty : SR.GetString(SR.ErrorTypeInfo, DataContract.
GetClrTypeFullName
(type));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (9)
85
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.NullValueReturnedForGetOnlyCollection, DataContract.
GetClrTypeFullName
(type))));
94
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ArrayExceededSize, arraySize, DataContract.
GetClrTypeFullName
(type))));
153
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IsReferenceGetOnlyCollectionsNotSupported, attributes.Ref, DataContract.
GetClrTypeFullName
(declaredType))));
208
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.FactoryTypeNotISerializable, DataContract.
GetClrTypeFullName
(factoryDataContract.UnderlyingType), DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
400
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.FactoryObjectContainsSelfReference, DataContract.
GetClrTypeFullName
(oldObj.GetType()), DataContract.
GetClrTypeFullName
(newObj.GetType()), id)));
439
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.GetRealObjectReturnedNull, DataContract.
GetClrTypeFullName
(obj.GetType()))));
486
DataContract.
GetClrTypeFullName
(typeof(T)))));
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (5)
80
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
101
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
204
DataContract.
GetClrTypeFullName
(declaredType))));
369
DataContract.
GetClrTypeFullName
(type))));
439
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CannotDeserializeForwardedType, DataContract.
GetClrTypeFullName
(resolvedType))));
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (11)
263
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
380
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.CannotSerializeObjectWithCycles, DataContract.
GetClrTypeFullName
(obj.GetType()))));
485
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.UnknownXmlType, DataContract.
GetClrTypeFullName
(obj.GetType()))));
511
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ISerializableAssemblyNameSetToZero, DataContract.
GetClrTypeFullName
(obj.GetType()))));
519
if (DataContract.
GetClrTypeFullName
(objType) != serInfo.FullTypeName)
744
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedFalse, DataContract.
GetClrTypeFullName
(DataContractResolver.GetType()), DataContract.
GetClrTypeFullName
(objectType))));
754
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.
GetClrTypeFullName
(DataContractResolver.GetType()), DataContract.
GetClrTypeFullName
(objectType))));
759
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ResolveTypeReturnedNull, DataContract.
GetClrTypeFullName
(DataContractResolver.GetType()), DataContract.
GetClrTypeFullName
(objectType))));
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (4)
76
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
97
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
118
DataContract.
GetClrTypeFullName
(dataContract.UnderlyingType))));
321
DataContract.
GetClrTypeFullName
(type))));
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
222
DataContract.
GetClrTypeFullName
(type)));
System\Runtime\Serialization\XmlSerializableWriter.cs (3)
25
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IXmlSerializableMissingEndElements, (obj == null ? string.Empty : DataContract.
GetClrTypeFullName
(obj.GetType())))));
54
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IXmlSerializableWritePastSubTree, (obj == null ? string.Empty : DataContract.
GetClrTypeFullName
(obj.GetType())))));
62
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.IXmlSerializableWritePastSubTree, (obj == null ? string.Empty : DataContract.
GetClrTypeFullName
(obj.GetType())))));
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
281
return new InvalidDataContractException(SR.GetString(SR.InvalidPrimitiveType, DataContract.
GetClrTypeFullName
(type)));