41 writes to Name
dotnet-svcutil-lib (41)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
169newAccessor.Name = this.Name; 238Name = Name.Substring("xml:".Length);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (5)
116element.Name = element.Mapping.DefaultElementName; 160element.Name = elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName); 729attribute.Name = Accessor.EscapeQName(a.SoapAttribute == null || a.SoapAttribute.AttributeName.Length == 0 ? accessorName : a.SoapAttribute.AttributeName); 744element.Name = XmlConvert.EncodeLocalName(a.SoapElement == null || a.SoapElement.ElementName.Length == 0 ? accessorName : a.SoapElement.ElementName); 758element.Name = mapping.TypeName; //XmlConvert.EncodeLocalName(name == null || name.Length == 0 ? mapping.TypeName : name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (7)
68accessor.Name = name.Name; 94accessor.Name = name; 156accessor.Name = name; 180accessor.Name = element.Name; 436arrayAccessor.Name = element.Name; 454itemAccessor.Name = Soap.UrType; 515itemAccessor.Name = typeName.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (17)
214element.Name = elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName); 277element.Name = XmlConvert.EncodeLocalName(root.ElementName); 1505arrayItemElement.Name = xmlArrayItem.ElementName.Length == 0 ? arrayItemElement.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlArrayItem.ElementName); 1586attribute.Name = Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName); 1617text.Name = accessorName; // unused except to make more helpful error messages 1638element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1643element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1687element.Name = anyName; 1730arrayElement.Name = XmlConvert.EncodeLocalName(a.XmlArray.ElementName.Length == 0 ? accessorName : a.XmlArray.ElementName); 1767attribute.Name = Accessor.EscapeQName(a.XmlAttribute.AttributeName.Length == 0 ? accessorName : a.XmlAttribute.AttributeName); 1794text.Name = accessorName; // unused except to make more helpful error messages 1812element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1882element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1886element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1931element.Name = anyName; 2239element.Name = mapping.DefaultElementName; 2266element.Name = XmlConvert.EncodeLocalName(typeName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (9)
146accessor.Name = typeName.Name; 216accessor.Name = elementName; 290accessor.Name = Accessor.EscapeName(name); 342accessor.Name = element.Name; 969choiceAccessor.Name = choiceIdentifier.Name; 976choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier); 1353arrayAccessor.Name = element.Name; 1695accessor.Name = name.Name; 1733accessor.Name = attribute.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (1)
766element.Name = typeDesc.DataType.Name;
123 references to Name
dotnet-svcutil-lib (123)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
230if (arrayMapping.Elements[i].Name != arrayMapping.Elements[i].Mapping.DefaultElementName)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (2)
183throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name)); 217throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (13)
129return (Namespace == null ? "##any" : Namespace) + ":" + Name; 133return Namespace == defaultNs ? Name : Namespace + ":" + Name; 169newAccessor.Name = this.Name; 230int colon = Name.LastIndexOf(':'); 234if (!Name.StartsWith("xml:", StringComparison.Ordinal)) 236throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidNameChars, Name)); 238Name = Name.Substring("xml:".Length); 651throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, TypeDesc.FullName, text.Name, text.Mapping.TypeDesc.FullName)); 878if (a[i].Name != b[i].Name || a[i].Namespace != b[i].Namespace || a[i].Form != b[i].Form || a[i].IsNullable != b[i].IsNullable) 901return (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace && Attribute.Form == mapping.Attribute.Form);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
229string elemName = Accessor.UnescapeName(element.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
299element.Name = accessor.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
558member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (10)
89ExportType(mapping.Attribute.Mapping, Accessor.UnescapeName(mapping.Attribute.Name), mapping.Attribute.Namespace, null, false); 96ExportType(element.Mapping, Accessor.UnescapeName(element.Name), element.Namespace, null, false); 101ExportType(mapping.Text.Mapping, Accessor.UnescapeName(mapping.Text.Name), mapping.Text.Namespace, null, false); 109ExportType(element.Mapping, Accessor.UnescapeName(element.Name), element.Namespace, element, true); 437AddWarningComment(comments, string.Format(ResXml.XmlDropArrayAttributeValue, attributeName, defaultValue.ToString(), ((ElementAccessor)accessor).Name)); 663AddRootMetadata(metadata, mapping.Mapping, Accessor.UnescapeName(mapping.Accessor.Name), mapping.Accessor.Namespace, mapping.Accessor); 690string elementName = Accessor.UnescapeName(arrayElement.Name); 718string attrName = Accessor.UnescapeName(attribute.Name); 747string elemName = Accessor.UnescapeName(element.Name); 784string elemName = Accessor.UnescapeName(element.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMapping.cs (2)
65get { return Microsoft.Xml.Serialization.Accessor.UnescapeName(Accessor.Name); } 74get { return Accessor.Name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (2)
45get { return Accessor.UnescapeName(Accessor.Name); } 54get { return Accessor.Name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (24)
308if (accessor.Any && accessor.Name.Length == 0) 311Accessor existing = (Accessor)accessors[accessor.Name, accessor.Namespace]; 315accessors.Add(accessor.Name, accessor.Namespace, accessor); 335throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessorDefault, accessor.Name, accessor.Namespace, value1, value2)); 340throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace)); 346throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 363throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAttributeAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 365throw new InvalidOperationException(string.Format(ResXml.XmlCannotReconcileAccessor, accessor.Name, accessor.Namespace, GetMappingName(existing.Mapping), GetMappingName(accessor.Mapping))); 871throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName)); 1693if (element.Name.Length > 0) 1706elements.Add(element.Name, element.Namespace, element); 1938if (element.Name.Length > 0) 1956elements.Add(element.Name, element.Namespace, element); 1967throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.Elements[0].Name)); 1986if (element.Any && element.Name.Length == 0) 2001if (element.Name == choiceName) 2013if (element.Any && element.Name.Length == 0) 2020string id = element.Namespace != null && element.Namespace.Length > 0 ? element.Namespace + ":" + element.Name : element.Name; 2022throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.Name, element.Namespace)); 2176Accessor existing = (Accessor)scope[accessor.Name, accessor.Namespace]; 2181throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.Name, existing.Namespace)); 2189throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.Name, existing.Namespace)); 2194scope[accessor.Name, accessor.Namespace] = accessor;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (13)
67type.Name = xmlMembersMapping.Accessor.Name; 71return (new XmlQualifiedName(xmlMembersMapping.Accessor.Name, xmlMembersMapping.Accessor.Namespace)); 103throw new InvalidOperationException(string.Format(ResXml.XmlBareAttributeMember, member.Attribute.Name)); 105throw new InvalidOperationException(string.Format(ResXml.XmlBareTextMember, member.Text.Name)); 110throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.Elements[0].Name)); 262if (accessor.Any && accessor.Name.Length == 0) 267element.Name = accessor.Name; 735attribute.RefName = new XmlQualifiedName(accessor.Name, XmlReservedNs.NsXml); 772attribute.Name = accessor.Name; 797refAttribute.RefName = new XmlQualifiedName(accessor.Name, accessor.Namespace); 844if (accessor.Any && accessor.Name.Length == 0) 863element.Name = accessor.Name; 891refElement.RefName = new XmlQualifiedName(accessor.Name, accessor.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (10)
260member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 979members.Add(choiceAccessor.Name, choiceIdentifier); 994if (item.Name != itemMapping.DefaultElementName) 1092ElementAccessor scopeElement = (ElementAccessor)scope[element.Name, element.Namespace]; 1097throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.Name, element.Namespace)); 1101throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.Name, element.Namespace)); 1107scope[element.Name, element.Namespace] = element; 1527string name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1575member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1917string constantName = CodeIdentifier.MakeValid(element.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
342ilg.Ldstr(mapping.Accessor.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (22)
1877string methodName = NextMethodName(element.Name); 1898WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), mapping.IsSoap); 2034WriteQuotedCSharpString(member.Elements[0].Name); 2083string methodName = NextMethodName(element.Name); 2097WriteEncodedNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2099WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2102WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 2571WriteQuotedCSharpString(attribute.Name); 2695WriteQuotedCSharpString(attribute.Name); 2743WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", attribute.Default, source, attribute.Mapping, false, false, false); 2936if (element.Name != null && element.Name.Length > 0) 3038WriteQuotedCSharpString(element.Name); 3171string name = writeAccessor ? element.Name : element.Mapping.TypeName; 3172string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 3192WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 3509WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 3667if (element.Any && element.Name.Length == 0) 3683if (element.Name == choiceName) 3697if (element.Any && element.Name.Length == 0) 3703throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (20)
361string methodName = NextMethodName(element.Name); 401WriteStartElement(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""), false); 558string methodName = NextMethodName(element.Name); 581WriteLiteralNullTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 584WriteEmptyTag(element.Name, (element.Form == XmlSchemaForm.Qualified ? element.Namespace : "")); 1246ilg.Ldstr(attribute.Name); 1396ilg.Ldstr(attribute.Name); 1465WritePrimitive("WriteAttribute", attribute.Name, attribute.Form == XmlSchemaForm.Qualified ? attribute.Namespace : "", GetConvertedDefaultValue(source.Type, attribute.Default), source, attribute.Mapping, false, false, false); 1681if (element.Name != null && element.Name.Length > 0) 1813ilg.Ldstr(element.Name); 2010string name = writeAccessor ? element.Name : element.Mapping.TypeName; 2011string ns = element.Any && element.Name.Length == 0 ? null : (element.Form == XmlSchemaForm.Qualified ? (writeAccessor ? element.Namespace : element.Mapping.Namespace) : ""); 2041WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2320WriteLiteralNullTag(element.Name, element.Form == XmlSchemaForm.Qualified ? element.Namespace : ""); 2383if (element.Any && element.Name.Length == 0) 2397if (element.Name == choiceName) 2409if (element.Any && element.Name.Length == 0) 2415throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, choiceMapping.TypeDesc.FullName, element.Namespace + ":" + element.Name, element.Name, element.Namespace));