8 writes to StableName
System.Runtime.Serialization (8)
System\Runtime\Serialization\ClassDataContract.cs (1)
1432boundClassContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(stableName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(this.UnderlyingType), genericParams)), stableName.Namespace);
System\Runtime\Serialization\CollectionDataContract.cs (1)
1247boundCollectionContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(this.StableName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(this.UnderlyingType), paramContracts)),
System\Runtime\Serialization\SchemaImporter.cs (6)
665dataContract.StableName = typeName; 716xmlDataContract.StableName = typeName; 845dataContract.StableName = typeName; 1069dataContract.StableName = typeName; 1135dataContract.ItemContract.StableName = new XmlQualifiedName(genericInfo.GetExpandedStableName().Name, typeName.Namespace); 1203dataContract.StableName = typeName;
160 references to StableName
System.Runtime.Serialization (160)
System\Runtime\Serialization\ClassDataContract.cs (4)
1035membersInHierarchy.Add(new Member(member, currContract.StableName.Namespace, baseTypeIndex)); 1185ThrowInvalidDataContractException(SR.GetString(SR.ValueTypeCannotHaveBaseType, StableName.Name, StableName.Namespace, baseContract.StableName.Name, baseContract.StableName.Namespace)); 1414stableName = this.StableName;
System\Runtime\Serialization\CodeExporter.cs (58)
67this.clrNamespaces.Add(clrNamespace, dataContract.StableName.Namespace); 68this.namespaces.Add(dataContract.StableName.Namespace, clrNamespace); 255stableName = SchemaImporter.ImportActualType(xmlDataContract.XsdType.Annotation, stableName, dataContract.StableName); 282ExportClassDataContractHierarchy(classDataContract.StableName, classDataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object>()); 311if (contractNamesInHierarchy.ContainsKey(classContract.StableName)) 312throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.TypeCannotBeImported, typeName.Name, typeName.Namespace, SR.GetString(SR.CircularTypeReference, classContract.StableName.Name, classContract.StableName.Namespace)))); 313contractNamesInHierarchy.Add(classContract.StableName, null); 424CodeNamespace ns = GetCodeNamespace(clrNamespace, dataContract.StableName.Namespace, contractCodeDomInfo); 428string typeName = XmlConvert.DecodeName(dataContract.StableName.Name); 471string originalName = dataContract.StableName.Name; 476DataContract containingDataContract = dataContractSet[new XmlQualifiedName(containingTypeName, dataContract.StableName.Namespace)]; 543if (TryGetReferencedType(dataContract.StableName, dataContract, out type) 554throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace))); 563throw 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))); 572throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace))); 578if (genericStableName != dataContract.StableName) 579throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.GenericTypeNameMismatch, dataContract.StableName.Name, dataContract.StableName.Namespace, genericStableName.Name, genericStableName.Namespace))); 587referencedContract.StableName.Name, 588referencedContract.StableName.Namespace))); 623if (collectionContract.ItemName != itemContract.StableName.Name) 631return (collectionContract.StableName.Name == expectedType.Name && collectionContract.StableName.Namespace == expectedType.Namespace); 680dataContract.StableName.Name, 681dataContract.StableName.Namespace, 821string dataContractName = GetNameForAttribute(classDataContract.StableName.Name); 824dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace))); 1001if (dataContract.StableName != pair.Key && !dataContract.KnownDataContracts.ContainsKey(pair.Key) && !pair.Value.IsBuiltInDataContract) 1072throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetClrTypeFullName(baseType)))); 1090string dataContractName = GetNameForAttribute(enumDataContract.StableName.Name); 1093dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace))); 1125if (DataContract.GetDefaultStableNamespace(contractCodeDomInfo.ClrNamespace) != dataContract.StableName.Namespace) 1126throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidClrNamespaceGeneratedForISerializable, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetDataContractNamespaceFromUri(dataContract.StableName.Namespace), contractCodeDomInfo.ClrNamespace))); 1127string dataContractName = GetNameForAttribute(dataContract.StableName.Name); 1131throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidClrNameGeneratedForISerializable, dataContract.StableName.Name, dataContract.StableName.Namespace, contractCodeDomInfo.TypeDeclaration.Name))); 1174if (keyValueContract != null && dataContractSet[keyValueContract.StableName] == null) 1193string dataContractName = GetNameForAttribute(collectionContract.StableName.Name); 1199collectionContract.StableName.Namespace))); 1221string expectedTypeName = Globals.ArrayPrefix + itemContract.StableName.Name; 1222string expectedTypeNs = DataContract.GetCollectionNamespace(itemContract.StableName.Namespace); 1224dataContractName, collectionContract.StableName.Namespace, 1234collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace))); 1291? SchemaImporter.ImportActualType(xmlDataContract.XsdType.Annotation, xmlDataContract.StableName, xmlDataContract.StableName) 1292: xmlDataContract.StableName; 1299(xmlDataContract.TopLevelElementName != null && xmlDataContract.TopLevelElementName.Value != xmlDataContract.StableName.Name) || 1300(xmlDataContract.TopLevelElementNamespace != null && xmlDataContract.TopLevelElementNamespace.Value != xmlDataContract.StableName.Namespace); 1434if (!Namespaces.TryGetValue(dataContract.StableName.Namespace, out clrNamespace)) 1442clrNamespace = GetClrNamespace(dataContract.StableName.Namespace); 1456AddNamespacePair(dataContract.StableName.Namespace, clrNamespace);
System\Runtime\Serialization\CollectionDataContract.cs (6)
604this.StableName = CreateQualifiedName(Globals.ArrayPrefix + itemContract.StableName.Name, itemContract.StableName.Namespace); 1244boundCollectionContract.ItemName = ItemNameSetExplicit ? this.ItemName : boundCollectionContract.ItemContract.StableName.Name; 1247boundCollectionContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(this.StableName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(this.UnderlyingType), paramContracts)), 1248IsCollectionDataContract(UnderlyingType) ? this.StableName.Namespace : DataContract.GetCollectionNamespace(boundCollectionContract.ItemContract.StableName.Namespace));
System\Runtime\Serialization\DataContract.cs (14)
1510stableName = builtInContract.StableName; 1619genericInfo.Add(new GenericInfo(this.StableName, null)); 1624itemName = this.StableName; 1878localName = dataContract.StableName.Name; 1879ns = dataContract.StableName.Namespace; 2247else if (nameToDataContractTable.TryGetValue(dataContract.StableName, out alreadyExistingContract)) 2250throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.DupContractInKnownTypes, type, alreadyExistingContract.UnderlyingType, dataContract.StableName.Namespace, dataContract.StableName.Name))); 2253nameToDataContractTable.Add(dataContract.StableName, dataContract); 2279return (StableName.Name == dataContract.StableName.Name && StableName.Namespace == dataContract.StableName.Namespace && IsReference == dataContract.IsReference); 2532genericParams[i] = qname = ((DataContract)o).StableName;
System\Runtime\Serialization\DataContractSet.cs (8)
116Add(dataContract.StableName, dataContract); 134throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.DupContractInDataContractSet, dataContract.StableName.Name, dataContract.StableName.Namespace))); 138throw 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))); 165Add(classDataContract.BaseContract.StableName, classDataContract.BaseContract); 184Add(memberDataContract.StableName, memberDataContract); 202Add(itemContract.StableName, itemContract);
System\Runtime\Serialization\Json\JsonDataContract.cs (4)
315if (!knownDataContracts.ContainsKey(itemContract.StableName)) 317knownDataContracts.Add(itemContract.StableName, itemContract); 324if (!knownDataContracts.ContainsKey(itemDataContract.StableName)) 326knownDataContracts.Add(itemDataContract.StableName, itemDataContract);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (4)
65TD.DCJsonGenReaderStart("Collection", collectionContract.StableName.Name); 125BeginMethod(ilg, "Read" + classContract.StableName.Name + "FromJson", typeof(JsonFormatClassReaderDelegate), memberAccessFlag); 196BeginMethod(ilg, "Read" + collectionContract.StableName.Name + "FromJson" + "IsGetOnly", typeof(JsonFormatGetOnlyCollectionReaderDelegate), memberAccessFlag); 200BeginMethod(ilg, "Read" + collectionContract.StableName.Name + "FromJson", typeof(JsonFormatCollectionReaderDelegate), memberAccessFlag);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
95BeginMethod(ilg, "Write" + classContract.StableName.Name + "ToJson", typeof(JsonFormatClassWriterDelegate), memberAccessFlag); 126BeginMethod(ilg, "Write" + collectionContract.StableName.Name + "ToJson", typeof(JsonFormatCollectionWriterDelegate), memberAccessFlag);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (4)
356throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace))); 388if (rootTypeDataContract.StableName == typeQName) 404if (itemContract.StableName == typeQName)
System\Runtime\Serialization\SchemaExporter.cs (13)
93XmlSchema schema = GetSchema(dataContract.StableName.Namespace); 114if (schema == null || dataContract.StableName.Namespace != dataContract.TopLevelElementNamespace.Value) 128type.Name = classDataContract.StableName.Name; 146actualTypeElement = ExportActualType(memberTypeContract.StableName); 147SchemaHelper.AddSchemaImport(memberTypeContract.StableName.Namespace, schema); 164XmlSchemaComplexContentExtension extension = CreateTypeContent(type, classDataContract.BaseContract.StableName, schema); 199element.SchemaTypeName = dataContract.StableName; 204SchemaHelper.AddSchemaImport(dataContract.StableName.Namespace, schema); 363type.Name = collectionDataContract.StableName.Name; 423type.Name = enumDataContract.StableName.Name; 462type.Name = dataContract.StableName.Name; 471XmlSchemaComplexContentExtension extension = CreateTypeContent(type, dataContract.BaseContract.StableName, schema); 511if (!(typeQName.Equals(dataContract.StableName)))
System\Runtime\Serialization\SchemaImporter.cs (18)
115elementTypeNames[i++] = ImportType(typeName).StableName; 122elementTypeNames[i++] = ImportAnonymousElement(element, element.QualifiedName).StableName; 126elementTypeNames[i++] = ImportAnonymousGlobalElement(element, element.QualifiedName, schema.TargetNamespace).StableName; 231if (!knownDataContracts.TryGetValue(dataContract.StableName, out existingContract)) 233knownDataContracts.Add(dataContract.StableName, dataContract); 562return (baseContract.StableName == expectedBase || baseContract is EnumDataContract); 678ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, SR.GetString(SR.DerivedTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 856ThrowISerializableTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, SR.GetString(SR.BaseTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 922ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, SR.GetString(dataContract.IsISerializable ? SR.InvalidISerializableDerivation : SR.InvalidClassDerivation, baseTypeName.Name, baseTypeName.Namespace)); 937knownDataContracts.Add(dataContract.StableName, dataContract); 968XmlQualifiedName typeName = dataContract.StableName; 1129dataContractSet.Remove(keyValueContract.StableName); 1148genericInfo.Add(new GenericInfo(dataMember.MemberTypeContract.StableName, null)); 1152genericInfo = new GenericInfo(dataMember.MemberTypeContract.StableName, null); 1419dataContractSet.Add(dataContract.StableName, dataContract);
System\Runtime\Serialization\XmlDataContract.cs (4)
421return (StableName.Name == dataContract.StableName.Name && StableName.Namespace == dataContract.StableName.Namespace);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (7)
126ilg.BeginMethod("Read" + classContract.StableName.Name + "FromXml", Globals.TypeOfXmlFormatClassReaderDelegate, memberAccessFlag); 207ilg.BeginMethod("Read" + collectionContract.StableName.Name + "FromXml" + "IsGetOnly", Globals.TypeOfXmlFormatGetOnlyCollectionReaderDelegate, memberAccessFlag); 211ilg.BeginMethod("Read" + collectionContract.StableName.Name + "FromXml" + string.Empty, Globals.TypeOfXmlFormatCollectionReaderDelegate, memberAccessFlag); 425ReadValue(memberType, dataMember.Name, classContract.StableName.Namespace); 429value = ReadValue(memberType, dataMember.Name, classContract.StableName.Namespace); 628string itemNs = collectionContract.StableName.Namespace; 741string itemNs = collectionContract.StableName.Namespace;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
108ilg.BeginMethod("Write" + classContract.StableName.Name + "ToXml", Globals.TypeOfXmlFormatClassWriterDelegate, memberAccessFlag); 138ilg.BeginMethod("Write" + collectionContract.StableName.Name + "ToXml", Globals.TypeOfXmlFormatCollectionWriterDelegate, memberAccessFlag); 791string ns = classContract.StableName.Namespace; 795if (ns == currentContract.StableName.Namespace)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (5)
272DataContract knownContract = ResolveDataContractFromKnownTypes(dataContract.StableName.Name, dataContract.StableName.Namespace, null /*memberTypeContract*/, declaredType); 337&& memberTypeContract.StableName == qname) 351if (rootTypeDataContract.StableName == typeQName) 358if (itemContract.StableName == typeQName)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
216values["ISerializableType"] = dataContract.StableName.Namespace + ":" + dataContract.StableName.Name;
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));
System\Runtime\Serialization\XsdDataContractExporter.cs (1)
198return dataContract.StableName;