60 references to EncodeLocalName
Microsoft.AspNetCore.Mvc.Formatters.Xml (9)
ProblemDetailsWrapper.cs (6)
120XmlConvert.EncodeLocalName("detail"), 127XmlConvert.EncodeLocalName("instance"), 133writer.WriteStartElement(XmlConvert.EncodeLocalName("status")); 141XmlConvert.EncodeLocalName("title"), 148XmlConvert.EncodeLocalName("type"), 162writer.WriteStartElement(XmlConvert.EncodeLocalName(key));
SerializableErrorWrapper.cs (1)
96writer.WriteStartElement(XmlConvert.EncodeLocalName(key));
ValidationProblemDetailsWrapper.cs (2)
87writer.WriteStartElement(XmlConvert.EncodeLocalName(ErrorKey)); 98writer.WriteStartElement(XmlConvert.EncodeLocalName(key));
System.Configuration.ConfigurationManager (1)
System\Configuration\LocalFileSettingsProvider.cs (1)
367return XmlConvert.EncodeLocalName(sectionName);
System.Data.Common (22)
System\Data\DataColumn.cs (1)
403_encodedColumnName ??= XmlConvert.EncodeLocalName(ColumnName);
System\Data\DataTable.cs (1)
1848encodedTblName = XmlConvert.EncodeLocalName(TableName);
System\Data\xmlsaver.cs (16)
104node.SetAttribute(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v); 593rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 597rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 1024_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 1027_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1047_dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 1049_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 1159root.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName)); 2015constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(unique.SchemaName)); 2092constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2138constraint.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2144constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName)); 2146constraint.SetAttribute(Keywords.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName)); 2165constraint.SetAttribute(Keywords.MSD_RELATIONNAME, Keywords.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName)); 2816_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2875_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace);
System\Data\XmlToDatasetMap.cs (3)
230string _columnLocalName = XmlConvert.EncodeLocalName(col.ColumnName); 326string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName); 398string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName);
System\Xml\XmlDataDocument.cs (1)
461string docElemName = XmlConvert.EncodeLocalName(DataSet.DataSetName);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContract.cs (1)
1202return XmlConvert.EncodeLocalName(localName);
System.Private.Xml (26)
System\Xml\Serialization\Mappings.cs (5)
107return XmlConvert.EncodeLocalName(name); 116return XmlConvert.EncodeLocalName(name); 121return new XmlQualifiedName(XmlConvert.EncodeLocalName(name.Substring(colon + 1)), XmlConvert.EncodeLocalName(name.Substring(0, colon))).ToString(); 349get { return IsAnonymousType ? XmlConvert.EncodeLocalName(_typeDesc!.Name) : _typeName; }
System\Xml\Serialization\SoapReflectionImporter.cs (4)
125element.Name = string.IsNullOrEmpty(elementName) ? elementName : XmlConvert.EncodeLocalName(elementName); 306typeName = XmlConvert.EncodeLocalName(typeName); 562typeName = XmlConvert.EncodeLocalName(typeName); 718element.Name = XmlConvert.EncodeLocalName(a.SoapElement == null || a.SoapElement.ElementName.Length == 0 ? accessorName : a.SoapElement.ElementName);
System\Xml\Serialization\Xmlcustomformatter.cs (1)
133return XmlConvert.EncodeLocalName(ncName);
System\Xml\Serialization\XmlReflectionImporter.cs (15)
222element.Name = string.IsNullOrEmpty(elementName) ? elementName : XmlConvert.EncodeLocalName(elementName); 283element.Name = XmlConvert.EncodeLocalName(root.ElementName); 740typeName = XmlConvert.EncodeLocalName(typeName); 1034name = XmlConvert.EncodeLocalName(name); 1196typeName = XmlConvert.EncodeLocalName(typeName); 1517arrayItemElement.Name = xmlArrayItem.ElementName.Length == 0 ? arrayItemElement.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlArrayItem.ElementName); 1651element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1656element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1687string anyName = xmlAnyElement.Name.Length == 0 ? xmlAnyElement.Name : XmlConvert.EncodeLocalName(xmlAnyElement.Name); 1742arrayElement.Name = XmlConvert.EncodeLocalName(a.XmlArray.ElementName.Length == 0 ? accessorName : a.XmlArray.ElementName); 1823element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1893element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1897element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1929string anyName = xmlAnyElement.Name.Length == 0 ? xmlAnyElement.Name : XmlConvert.EncodeLocalName(xmlAnyElement.Name); 2279element.Name = XmlConvert.EncodeLocalName(typeName);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
468return GetQualifiedName(EscapeName ? XmlConvert.EncodeLocalName(xmlQualifiedName.Name) : xmlQualifiedName.Name, xmlQualifiedName.Namespace);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\SchemaImportHelper.cs (1)
95return XmlConvert.EncodeLocalName(localName);