7 writes to StableName
dotnet-svcutil-lib (7)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
726dataContract.StableName = originalDataContract.StableName;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (6)
664dataContract.StableName = typeName; 715xmlDataContract.StableName = typeName; 839dataContract.StableName = typeName; 1063dataContract.StableName = typeName; 1129dataContract.ItemContract.StableName = new XmlQualifiedName(genericInfo.GetExpandedStableName().Name, typeName.Namespace); 1197dataContract.StableName = typeName;
124 references to StableName
dotnet-svcutil-lib (124)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (3)
1119membersInHierarchy.Add(new Member(member, currContract.StableName.Namespace, baseTypeIndex)); 1256ThrowInvalidDataContractException(string.Format(SRSerialization.ValueTypeCannotHaveBaseType, StableName.Name, StableName.Namespace, _baseContract.StableName.Name, _baseContract.StableName.Namespace));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (52)
67_clrNamespaces.Add(clrNamespace, dataContract.StableName.Namespace); 68_namespaces.Add(dataContract.StableName.Namespace, clrNamespace); 253stableName = SchemaImporter.ImportActualType(xmlDataContract.XsdType.Annotation, stableName, dataContract.StableName); 277ExportClassDataContractHierarchy(classDataContract.StableName, classDataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object>()); 306if (contractNamesInHierarchy.ContainsKey(classContract.StableName)) 307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeCannotBeImported, typeName.Name, typeName.Namespace, string.Format(SRSerialization.CircularTypeReference, classContract.StableName.Name, classContract.StableName.Namespace)))); 308contractNamesInHierarchy.Add(classContract.StableName, null); 419CodeNamespace ns = GetCodeNamespace(clrNamespace, dataContract.StableName.Namespace, contractCodeDomInfo); 423string typeName = XmlConvert.DecodeName(dataContract.StableName.Name); 466string originalName = dataContract.StableName.Name; 471DataContract containingDataContract = _dataContractSet[new XmlQualifiedName(containingTypeName, dataContract.StableName.Namespace)]; 540if (TryGetReferencedType(dataContract.StableName, dataContract, out type) && (info = type.GetTypeInfo()) != null 551throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace))); 560throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeMustBeIXmlSerializable, DataContract.GetClrTypeFullName(type), DataContract.GetClrTypeFullName(Globals.TypeOfIXmlSerializable), dataContract.StableName.Name, dataContract.StableName.Namespace))); 569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace))); 575if (genericStableName != dataContract.StableName) 576throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericTypeNameMismatch, dataContract.StableName.Name, dataContract.StableName.Namespace, genericStableName.Name, genericStableName.Namespace))); 580if (referencedContract != null && !(referencedContract.StableName.Equals(dataContract.GenericInfo.StableName) && referencedContract.IsReference == dataContract.IsReference)) 585referencedContract.StableName.Name, 586referencedContract.StableName.Namespace))); 621if (collectionContract.ItemName != itemContract.StableName.Name) 629return (collectionContract.StableName.Name == expectedType.Name && collectionContract.StableName.Namespace == expectedType.Namespace); 678dataContract.StableName.Name, 679dataContract.StableName.Namespace, 814string dataContractName = GetNameForAttribute(classDataContract.StableName.Name); 817dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace))); 988if (dataContract.StableName != pair.Key && !dataContract.KnownDataContracts.ContainsKey(pair.Key) && !pair.Value.IsBuiltInDataContract) 1055throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetClrTypeFullName(baseType)))); 1073string dataContractName = GetNameForAttribute(enumDataContract.StableName.Name); 1076dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace))); 1106if (keyValueContract != null && _dataContractSet[keyValueContract.StableName] == null) 1125string dataContractName = GetNameForAttribute(collectionContract.StableName.Name); 1131collectionContract.StableName.Namespace))); 1153string expectedTypeName = Globals.ArrayPrefix + itemContract.StableName.Name; 1154string expectedTypeNs = DataContract.GetCollectionNamespace(itemContract.StableName.Namespace); 1156dataContractName, collectionContract.StableName.Namespace, 1166collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace))); 1223? SchemaImporter.ImportActualType(xmlDataContract.XsdType.Annotation, xmlDataContract.StableName, xmlDataContract.StableName) 1224: xmlDataContract.StableName; 1231(xmlDataContract.TopLevelElementName != null && xmlDataContract.TopLevelElementName.Value != xmlDataContract.StableName.Name) || 1232(xmlDataContract.TopLevelElementNamespace != null && xmlDataContract.TopLevelElementNamespace.Value != xmlDataContract.StableName.Namespace); 1366if (!Namespaces.TryGetValue(dataContract.StableName.Namespace, out clrNamespace)) 1374clrNamespace = GetClrNamespace(dataContract.StableName.Namespace); 1388AddNamespacePair(dataContract.StableName.Namespace, clrNamespace);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (17)
723if (dataContract.StableName != originalDataContract.StableName) 726dataContract.StableName = originalDataContract.StableName; 1505stableName = builtInContract.StableName; 1640genericInfo.Add(new GenericInfo(this.StableName, null)); 1645itemName = this.StableName; 2149if (!knownDataContracts.ContainsKey(itemDataContract.StableName)) 2151knownDataContracts.Add(itemDataContract.StableName, itemDataContract); 2177else if (nameToDataContractTable.TryGetValue(dataContract.StableName, out alreadyExistingContract)) 2182throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.DupContractInKnownTypes, type, alreadyExistingContract.UnderlyingType, dataContract.StableName.Namespace, dataContract.StableName.Name))); 2185nameToDataContractTable.Add(dataContract.StableName, dataContract); 2201return (StableName.Name == dataContract.StableName.Name && StableName.Namespace == dataContract.StableName.Namespace && IsReference == dataContract.IsReference); 2416_genericParams[i] = qname = ((DataContract)o).StableName;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (8)
112Add(dataContract.StableName, dataContract); 130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.DupContractInDataContractSet, dataContract.StableName.Name, dataContract.StableName.Namespace))); 134throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.DupTypeContractInDataContractSet, (typeNamesEqual ? dataContract.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), (typeNamesEqual ? dataContractInSet.UnderlyingType.AssemblyQualifiedName : DataContract.GetClrTypeFullName(dataContractInSet.UnderlyingType)), dataContract.StableName.Name, dataContract.StableName.Namespace))); 161Add(classDataContract.BaseContract.StableName, classDataContract.BaseContract); 180Add(memberDataContract.StableName, memberDataContract); 198Add(itemContract.StableName, itemContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (6)
331this.KnownDataContracts.Add(dataDataContract.StableName, dataDataContract); 378writer.WriteAttributeString(Globals.XsiPrefix, "type", null, "a:" + propDataContract.StableName.Name); 379writer.WriteXmlnsAttribute("a", new XmlDictionary(1).Add(propDataContract.StableName.Namespace)); 422writer.WriteAttributeString(Globals.XsiPrefix, "type", null, "a:" + fieldDataContract.StableName.Name); 423writer.WriteXmlnsAttribute("a", new XmlDictionary(1).Add(fieldDataContract.StableName.Namespace)); 548writer.WriteAttributeString(Globals.XsiPrefix, "type", null, "x:" + primitiveContract.StableName.Name);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (18)
114_elementTypeNames[i++] = ImportType(typeName).StableName; 121_elementTypeNames[i++] = ImportAnonymousElement(element, element.QualifiedName).StableName; 125_elementTypeNames[i++] = ImportAnonymousGlobalElement(element, element.QualifiedName, schema.TargetNamespace).StableName; 230if (!knownDataContracts.TryGetValue(dataContract.StableName, out existingContract)) 232knownDataContracts.Add(dataContract.StableName, dataContract); 561return (baseContract.StableName == expectedBase || baseContract is EnumDataContract); 677ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(SRSerialization.DerivedTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 850ThrowISerializableTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(SRSerialization.BaseTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 916ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(dataContract.IsISerializable ? SRSerialization.InvalidISerializableDerivation : SRSerialization.InvalidClassDerivation, baseTypeName.Name, baseTypeName.Namespace)); 931knownDataContracts.Add(dataContract.StableName, dataContract); 962XmlQualifiedName typeName = dataContract.StableName; 1123_dataContractSet.Remove(keyValueContract.StableName); 1142genericInfo.Add(new GenericInfo(dataMember.MemberTypeContract.StableName, null)); 1146genericInfo = new GenericInfo(dataMember.MemberTypeContract.StableName, null); 1414_dataContractSet.Add(dataContract.StableName, dataContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (7)
95_ilg.BeginMethod("Read" + classContract.StableName.Name + "FromXml", Globals.TypeOfXmlFormatClassReaderDelegate, memberAccessFlag); 169_ilg.BeginMethod("Read" + collectionContract.StableName.Name + "FromXml" + "IsGetOnly", Globals.TypeOfXmlFormatGetOnlyCollectionReaderDelegate, memberAccessFlag); 173_ilg.BeginMethod("Read" + collectionContract.StableName.Name + "FromXml" + string.Empty, Globals.TypeOfXmlFormatCollectionReaderDelegate, memberAccessFlag); 328ReadValue(memberType, dataMember.Name, classContract.StableName.Namespace); 332value = ReadValue(memberType, dataMember.Name, classContract.StableName.Namespace); 530string itemNs = collectionContract.StableName.Namespace; 643string itemNs = collectionContract.StableName.Namespace;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
86_ilg.BeginMethod("Write" + classContract.StableName.Name + "ToXml", Globals.TypeOfXmlFormatClassWriterDelegate, memberAccessFlag); 110_ilg.BeginMethod("Write" + collectionContract.StableName.Name + "ToXml", Globals.TypeOfXmlFormatCollectionWriterDelegate, memberAccessFlag); 700string ns = classContract.StableName.Namespace; 704if (ns == currentContract.StableName.Namespace)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (5)
236DataContract knownContract = ResolveDataContractFromKnownTypes(dataContract.StableName.Name, dataContract.StableName.Namespace, null /*memberTypeContract*/ /*, declaredType */); 283&& memberTypeContract.StableName == qname) 289if (rootTypeDataContract.StableName == qname) 297if (itemContract.StableName == qname)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (4)
270DataContract knownContract = ResolveDataContractFromKnownTypes(dataContract.StableName.Name, dataContract.StableName.Namespace, null /*memberTypeContract*/); 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.DcTypeNotFoundOnSerialize, DataContract.GetClrTypeFullName(dataContract.UnderlyingType), dataContract.StableName.Name, dataContract.StableName.Namespace)));