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