880 references to XmlConvert
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
361var keyId = XmlConvert.ToGuid(keyIdAsString);
Microsoft.AspNetCore.DataProtection.Tests (7)
KeyManagement\XmlKeyManagerTests.cs (7)
373Assert.Equal(XmlConvert.ToDateTimeOffset("2015-01-01T00:00:00Z"), keys[0].CreationDate); 374Assert.Equal(XmlConvert.ToDateTimeOffset("2015-02-01T00:00:00Z"), keys[0].ActivationDate); 375Assert.Equal(XmlConvert.ToDateTimeOffset("2015-03-01T00:00:00Z"), keys[0].ExpirationDate); 379Assert.Equal(XmlConvert.ToDateTimeOffset("2015-04-01T00:00:00Z"), keys[1].CreationDate); 380Assert.Equal(XmlConvert.ToDateTimeOffset("2015-05-01T00:00:00Z"), keys[1].ActivationDate); 381Assert.Equal(XmlConvert.ToDateTimeOffset("2015-06-01T00:00:00Z"), keys[1].ExpirationDate); 635var revocationDate = XmlConvert.ToDateTimeOffset("2015-03-01T19:13:19.7573854-08:00");
Microsoft.AspNetCore.Mvc.Formatters.Xml (12)
ProblemDetailsWrapper.cs (7)
59var key = XmlConvert.DecodeName(reader.LocalName); 120XmlConvert.EncodeLocalName("detail"), 127XmlConvert.EncodeLocalName("instance"), 133writer.WriteStartElement(XmlConvert.EncodeLocalName("status")); 141XmlConvert.EncodeLocalName("title"), 148XmlConvert.EncodeLocalName("type"), 162writer.WriteStartElement(XmlConvert.EncodeLocalName(key));
SerializableErrorWrapper.cs (2)
67var key = XmlConvert.DecodeName(reader.LocalName); 96writer.WriteStartElement(XmlConvert.EncodeLocalName(key));
ValidationProblemDetailsWrapper.cs (3)
63var key = XmlConvert.DecodeName(reader.LocalName); 87writer.WriteStartElement(XmlConvert.EncodeLocalName(ErrorKey)); 98writer.WriteStartElement(XmlConvert.EncodeLocalName(key));
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (18)
XmlSerializerInputFormatterTest.cs (18)
42var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 69XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 79var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 106XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 116var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 142XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 152var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 178XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 191var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 222XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 336var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 358XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 368var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 393XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), 430"<SampleDate>" + XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc) 451"<SampleDate>" + XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc) 586var expectedDateTime = XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.Utc); 617Assert.Equal(XmlConvert.ToDateTime(expectedDateTime, XmlDateTimeSerializationMode.Utc), model.SampleDate);
netstandard (1)
netstandard.cs (1)
2461[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlConvert))]
PresentationFramework (10)
System\Windows\Annotations\Annotation.cs (6)
210writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 211writer.WriteAttributeString(AnnotationXmlConstants.Attributes.CreationTime, XmlConvert.ToString(_created)); 212writer.WriteAttributeString(AnnotationXmlConstants.Attributes.LastModificationTime, XmlConvert.ToString(_modified)); 620_id = XmlConvert.ToGuid(value); 627_created = XmlConvert.ToDateTime(value); 631_modified = XmlConvert.ToDateTime(value);
System\Windows\Annotations\AnnotationResource.cs (2)
124writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 456tempId = XmlConvert.ToGuid(value);
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
583annId = XmlConvert.ToGuid(nodeId); 922XPathNodeIterator iterator = tempNavigator.Select($@"//{AnnotationXmlConstants.Prefixes.CoreSchemaPrefix}:Annotation[@Id=""{XmlConvert.ToString(id)}""]", _namespaceManager);
ReachFramework (13)
packaging\XpsDigitalSignature.cs (1)
163string convertedId = XmlConvert.DecodeName(sig.Id);
Packaging\XpsDocument.cs (2)
418XmlConvert.EncodeName(id.ToString()), 460XmlConvert.EncodeName(id.ToString()),
Packaging\XPSSignatureDefinition.cs (2)
344writer.WriteAttributeString(XpsS0Markup.SpotId, XmlConvert.EncodeName(SpotId.ToString())); 490SpotId = new Guid(XmlConvert.DecodeName(attributeValue));
PrintConfig\PrintCapabilitesWriter.cs (6)
179string nUpString = XmlConvert.ToString(nUp); 364WriteValue("xsd:integer", XmlConvert.ToString(paperSizes[i].Width)); 370WriteValue("xsd:integer", XmlConvert.ToString(paperSizes[i].Height)); 520string x = XmlConvert.ToString(resolutions[i].x); 521string y = XmlConvert.ToString(resolutions[i].y); 725WriteProperty(propertyNamespace, propertyName, "xsd:integer", XmlConvert.ToString(propertyValue));
PrintConfig\PrintSchema.cs (2)
2437intValue = XmlConvert.ToInt32(s); 2472decValue = XmlConvert.ToDecimal(s);
System.Configuration.ConfigurationManager (2)
System\Configuration\BaseConfigurationRecord.cs (1)
3034XmlConvert.VerifyName(name);
System\Configuration\LocalFileSettingsProvider.cs (1)
367return XmlConvert.EncodeLocalName(sectionName);
System.Data.Common (195)
System\Data\Common\BooleanStorage.cs (2)
172return XmlConvert.ToBoolean(s); 179return XmlConvert.ToString((bool)value);
System\Data\Common\ByteStorage.cs (2)
244return XmlConvert.ToByte(s); 251return XmlConvert.ToString((byte)value);
System\Data\Common\CharStorage.cs (2)
176return XmlConvert.ToChar(s); 183return XmlConvert.ToString((char)value);
System\Data\Common\DateTimeOffsetStorage.cs (2)
179return XmlConvert.ToDateTimeOffset(s); 186return XmlConvert.ToString((DateTimeOffset)value);
System\Data\Common\DateTimeStorage.cs (4)
221retValue = XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.Unspecified); 225retValue = XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind); 237retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.Local); 241retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind);
System\Data\Common\DecimalStorage.cs (2)
240return XmlConvert.ToDecimal(s); 247return XmlConvert.ToString((decimal)value);
System\Data\Common\DoubleStorage.cs (2)
244return XmlConvert.ToDouble(s); 251return XmlConvert.ToString((double)value);
System\Data\Common\Int16Storage.cs (2)
258return XmlConvert.ToInt16(s); 265return XmlConvert.ToString((short)value);
System\Data\Common\Int32Storage.cs (2)
257return XmlConvert.ToInt32(s); 264return XmlConvert.ToString((int)value);
System\Data\Common\Int64Storage.cs (2)
249return XmlConvert.ToInt64(s); 256return XmlConvert.ToString((long)value);
System\Data\Common\SByteStorage.cs (2)
246return XmlConvert.ToSByte(s); 253return XmlConvert.ToString((sbyte)value);
System\Data\Common\SingleStorage.cs (2)
245return XmlConvert.ToSingle(s); 252return XmlConvert.ToString((float)value);
System\Data\Common\SQLConvert.cs (59)
465return XmlConvert.ToString((TimeSpan)value); 467return XmlConvert.ToString((Guid)value); 496StorageType.String => XmlConvert.ToTimeSpan((string)value), 544return XmlConvert.ToTimeSpan((string)value); 546return XmlConvert.ToGuid((string)value); 571return new SqlBoolean(XmlConvert.ToBoolean((string)value)); 573return new SqlByte(XmlConvert.ToByte((string)value)); 579return new SqlDateTime(XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind)); 583return new SqlDouble(XmlConvert.ToDouble((string)value)); 585return new SqlGuid(XmlConvert.ToGuid((string)value)); 587return new SqlInt16(XmlConvert.ToInt16((string)value)); 589return new SqlInt32(XmlConvert.ToInt32((string)value)); 591return new SqlInt64(XmlConvert.ToInt64((string)value)); 593return new SqlMoney(XmlConvert.ToDecimal((string)value)); 595return new SqlSingle(XmlConvert.ToSingle((string)value)); 606return XmlConvert.ToBoolean((string)value); 608return XmlConvert.ToChar((string)value); 610return XmlConvert.ToSByte((string)value); 612return XmlConvert.ToByte((string)value); 614return XmlConvert.ToInt16((string)value); 616return XmlConvert.ToUInt16((string)value); 618return XmlConvert.ToInt32((string)value); 620return XmlConvert.ToUInt32((string)value); 622return XmlConvert.ToInt64((string)value); 624return XmlConvert.ToUInt64((string)value); 626return XmlConvert.ToSingle((string)value); 628return XmlConvert.ToDouble((string)value); 630return XmlConvert.ToDecimal((string)value); 632return XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind); 634return XmlConvert.ToGuid((string)value); 638return XmlConvert.ToDateTimeOffset((string)value); 642StorageType.String => XmlConvert.ToTimeSpan((string)value), 659return XmlConvert.ToString(((SqlBoolean)value).Value); 661return XmlConvert.ToString(((SqlByte)value).Value); 667return XmlConvert.ToString(((SqlDateTime)value).Value, XmlDateTimeSerializationMode.RoundtripKind); 671return XmlConvert.ToString(((SqlDouble)value).Value); 673return XmlConvert.ToString(((SqlGuid)value).Value); 675return XmlConvert.ToString(((SqlInt16)value).Value); 677return XmlConvert.ToString(((SqlInt32)value).Value); 679return XmlConvert.ToString(((SqlInt64)value).Value); 681return XmlConvert.ToString(((SqlMoney)value).Value); 683return XmlConvert.ToString(((SqlSingle)value).Value); 687return XmlConvert.ToString((bool)value); 689return XmlConvert.ToString((char)value); 691return XmlConvert.ToString((sbyte)value); 693return XmlConvert.ToString((byte)value); 695return XmlConvert.ToString((short)value); 697return XmlConvert.ToString((ushort)value); 699return XmlConvert.ToString((int)value); 701return XmlConvert.ToString((uint)value); 703return XmlConvert.ToString((long)value); 705return XmlConvert.ToString((ulong)value); 707return XmlConvert.ToString((float)value); 709return XmlConvert.ToString((double)value); 711return XmlConvert.ToString((decimal)value); 713return XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind); 715return XmlConvert.ToString((TimeSpan)value); 717return XmlConvert.ToString((Guid)value); 723return XmlConvert.ToString((DateTimeOffset)value);
System\Data\Common\TimeSpanStorage.cs (2)
264return XmlConvert.ToTimeSpan(s); 271return XmlConvert.ToString((TimeSpan)value);
System\Data\Common\UInt16Storage.cs (2)
257return XmlConvert.ToUInt16(s); 264return XmlConvert.ToString((ushort)value);
System\Data\Common\UInt32Storage.cs (2)
256return XmlConvert.ToUInt32(s); 263return XmlConvert.ToString((uint)value);
System\Data\Common\UInt64Storage.cs (2)
247return XmlConvert.ToUInt64(s); 254return XmlConvert.ToString((ulong)value);
System\Data\DataColumn.cs (3)
403_encodedColumnName ??= XmlConvert.EncodeLocalName(ColumnName); 431if ((XmlConvert.DecodeName(value) == value) && (XmlConvert.EncodeName(value) != value))
System\Data\DataSet.cs (2)
828if ((XmlConvert.DecodeName(value) == value) && (XmlConvert.EncodeName(value) != value))
System\Data\DataTable.cs (3)
1848encodedTblName = XmlConvert.EncodeLocalName(TableName); 2072if ((XmlConvert.DecodeName(value) == value) && (XmlConvert.EncodeName(value) != value))
System\Data\DataViewManager.cs (1)
124string table = XmlConvert.DecodeName(r.LocalName);
System\Data\SQLTypes\SQLBinary.cs (1)
417if (isNull != null && XmlConvert.ToBoolean(isNull))
System\Data\SQLTypes\SQLBoolean.cs (2)
484if (isNull != null && XmlConvert.ToBoolean(isNull)) 492m_value = XmlConvert.ToBoolean(reader.ReadElementString()) ? x_True : x_False;
System\Data\SQLTypes\SQLByte.cs (3)
493if (isNull != null && XmlConvert.ToBoolean(isNull)) 501m_value = XmlConvert.ToByte(reader.ReadElementString()); 514writer.WriteString(XmlConvert.ToString(m_value));
System\Data\SQLTypes\SQLBytes.cs (1)
530if (isNull != null && XmlConvert.ToBoolean(isNull))
System\Data\SQLTypes\SQLChars.cs (1)
496if (isNull != null && XmlConvert.ToBoolean(isNull))
System\Data\SQLTypes\SQLDateTime.cs (3)
635if (isNull != null && XmlConvert.ToBoolean(isNull)) 643DateTime dt = XmlConvert.ToDateTime(reader.ReadElementString(), XmlDateTimeSerializationMode.RoundtripKind); 668writer.WriteString(XmlConvert.ToString(Value, ISO8601_DateTimeFormat));
System\Data\SQLTypes\SQLDecimal.cs (1)
3352if (isNull != null && XmlConvert.ToBoolean(isNull))
System\Data\SQLTypes\SQLDouble.cs (3)
409if (isNull != null && XmlConvert.ToBoolean(isNull)) 417m_value = XmlConvert.ToDouble(reader.ReadElementString()); 430writer.WriteString(XmlConvert.ToString(m_value));
System\Data\SQLTypes\SQLGuid.cs (2)
298if (isNull != null && XmlConvert.ToBoolean(isNull)) 318writer.WriteString(XmlConvert.ToString(_value.GetValueOrDefault()));
System\Data\SQLTypes\SQLInt16.cs (3)
494if (isNull != null && XmlConvert.ToBoolean(isNull)) 502m_value = XmlConvert.ToInt16(reader.ReadElementString()); 515writer.WriteString(XmlConvert.ToString(m_value));
System\Data\SQLTypes\SQLInt32.cs (3)
509if (isNull != null && XmlConvert.ToBoolean(isNull)) 517m_value = XmlConvert.ToInt32(reader.ReadElementString()); 530writer.WriteString(XmlConvert.ToString(m_value));
System\Data\SQLTypes\SQLInt64.cs (3)
568if (isNull != null && XmlConvert.ToBoolean(isNull)) 576m_value = XmlConvert.ToInt64(reader.ReadElementString()); 589writer.WriteString(XmlConvert.ToString(m_value));
System\Data\SQLTypes\SQLMoney.cs (3)
565if (isNull != null && XmlConvert.ToBoolean(isNull)) 573SqlMoney money = new SqlMoney(XmlConvert.ToDecimal(reader.ReadElementString())); 587writer.WriteString(XmlConvert.ToString(ToDecimal()));
System\Data\SQLTypes\SQLSingle.cs (3)
419if (isNull != null && XmlConvert.ToBoolean(isNull)) 427_value = XmlConvert.ToSingle(reader.ReadElementString()); 440writer.WriteString(XmlConvert.ToString(_value));
System\Data\SQLTypes\SQLString.cs (1)
925if (isNull != null && XmlConvert.ToBoolean(isNull))
System\Data\SQLTypes\SqlXml.cs (1)
212if (isNull != null && XmlConvert.ToBoolean(isNull))
System\Data\XDRSchema.cs (4)
63_schemaName = XmlConvert.DecodeName(_schemaName); 453column = new DataColumn(XmlConvert.DecodeName(instanceName), type, null, 572table = new DataTable(XmlConvert.DecodeName(typeName)); 657string tbName = XmlConvert.DecodeName(typeName);
System\Data\XmlDataLoader.cs (3)
944c = collection[XmlConvert.DecodeName(_dataReader.LocalName.Substring(6))]; 1181if ((xsiNilString != null) && XmlConvert.ToBoolean(xsiNilString)) 1346if (0 == text.Length && xsiNilString != null && XmlConvert.ToBoolean(xsiNilString))
System\Data\XMLDiffLoader.cs (7)
191table = ds.Tables.GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI); 205DataColumn col = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI]!; 231table = GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI); 260DataColumn col = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI]!; 299table = ds.Tables.GetTable(XmlConvert.DecodeName(row.LocalName), row.NamespaceURI); 303table = GetTable(XmlConvert.DecodeName(row.LocalName), row.NamespaceURI); 376string ln = XmlConvert.DecodeName(row.LocalName);
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\XMLSchema.cs (25)
335string propName = XmlConvert.DecodeName(attrs[i].LocalName); 406string propName = XmlConvert.DecodeName(attrs[i].LocalName); 416DataTable? table = _ds!.Tables.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace); 442strName = XmlConvert.DecodeName(node.GetAttribute(Keywords.NAME)); 452parentName = XmlConvert.DecodeName(parentName); 457childName = XmlConvert.DecodeName(childName); 492parentKey[i] = parent.Columns[XmlConvert.DecodeName(parentNames[i])]!; 495childKey[i] = child.Columns[XmlConvert.DecodeName(childNames[i])]!; 675ds.DataSetName = XmlConvert.DecodeName(_schemaName); 718ds.MainTableName = XmlConvert.DecodeName(mainName); 835ds.DataSetName = XmlConvert.DecodeName(((XmlSchemaElement)_elements[0]).Name)!; 1186colName = XmlConvert.DecodeName(colName); 1281string refer = XmlConvert.DecodeName(keyref.Refer.Name); // check here!!! 1282string name = XmlConvert.DecodeName(keyref.Name)!; 1328string relName = XmlConvert.DecodeName(GetStringAttribute(keyref, Keywords.MSD_RELATIONNAME, keyref.Name!)); 1391name = XmlConvert.DecodeName(keyNode.Name); 1445string typeName = XmlConvert.DecodeName(GetInstanceName(node)); 1566table = _ds!.Tables.GetTable(XmlConvert.DecodeName(typeName), _TableUri); 1585table = new DataTable(XmlConvert.DecodeName(typeName)); 2256string columnName = XmlConvert.DecodeName(GetInstanceName(attr)); 2443string columnName = XmlConvert.DecodeName(GetInstanceName(el)); 2614_ds.DataSetName = XmlConvert.DecodeName(dsName); 2644DataTable? tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2789prefix = XmlConvert.DecodeName(prefix); 2803tableName = XmlConvert.DecodeName(tableName);
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.IO.Packaging (3)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
157XmlConvert.VerifyNCName(id);
System\IO\Packaging\PackageRelationship.cs (1)
140XmlConvert.VerifyNCName(id);
System\IO\Packaging\PartBasedPackageProperties.cs (1)
797_xmlWriter.WriteString(XmlConvert.ToString(((Nullable<DateTime>)entry.Value).Value.ToUniversalTime(), "yyyy-MM-ddTHH:mm:ss.fffffffZ"));
System.Private.DataContractSerialization (53)
System\Runtime\Serialization\ClassDataContract.cs (1)
1365boundClassContract.XmlName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(xmlName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(UnderlyingType), genericParams)), xmlName.Namespace);
System\Runtime\Serialization\CollectionDataContract.cs (1)
1405boundCollectionContract.XmlName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(XmlName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(UnderlyingType), paramContracts)),
System\Runtime\Serialization\DataContract.cs (3)
1202return XmlConvert.EncodeLocalName(localName); 1209XmlConvert.VerifyNCName(name); 2379return new XmlQualifiedName(DataContract.EncodeLocalName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(_xmlName.Name), this)), _xmlName.Namespace);
System\Runtime\Serialization\DataContractSet.cs (1)
612XmlConvert.DecodeName(xmlName.Name),
System\Runtime\Serialization\EnumDataContract.cs (2)
393return XmlConvert.ToString((ulong)value); 397return XmlConvert.ToString(value);
System\Runtime\Serialization\ExtensionDataReader.cs (14)
665_value = XmlConvert.ToString(isTypedNode ? ((DataNode<bool>)dataNode).GetValue() : (bool)dataNode.Value); 668_value = XmlConvert.ToString((int)(isTypedNode ? ((DataNode<char>)dataNode).GetValue() : (char)dataNode.Value)); 671_value = XmlConvert.ToString(isTypedNode ? ((DataNode<byte>)dataNode).GetValue() : (byte)dataNode.Value); 674_value = XmlConvert.ToString(isTypedNode ? ((DataNode<short>)dataNode).GetValue() : (short)dataNode.Value); 677_value = XmlConvert.ToString(isTypedNode ? ((DataNode<int>)dataNode).GetValue() : (int)dataNode.Value); 680_value = XmlConvert.ToString(isTypedNode ? ((DataNode<long>)dataNode).GetValue() : (long)dataNode.Value); 683_value = XmlConvert.ToString(isTypedNode ? ((DataNode<float>)dataNode).GetValue() : (float)dataNode.Value); 686_value = XmlConvert.ToString(isTypedNode ? ((DataNode<double>)dataNode).GetValue() : (double)dataNode.Value); 689_value = XmlConvert.ToString(isTypedNode ? ((DataNode<decimal>)dataNode).GetValue() : (decimal)dataNode.Value); 699_value = XmlConvert.ToString(isTypedNode ? ((DataNode<sbyte>)dataNode).GetValue() : (sbyte)dataNode.Value); 702_value = XmlConvert.ToString(isTypedNode ? ((DataNode<ushort>)dataNode).GetValue() : (ushort)dataNode.Value); 705_value = XmlConvert.ToString(isTypedNode ? ((DataNode<uint>)dataNode).GetValue() : (uint)dataNode.Value); 708_value = XmlConvert.ToString(isTypedNode ? ((DataNode<ulong>)dataNode).GetValue() : (ulong)dataNode.Value); 718_value = XmlConvert.ToString(isTypedNode ? ((DataNode<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.Value);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
380return XmlConvert.DecodeName(xmlName);
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
59return XmlConvert.ToChar(ReadContentAsString()); 69return XmlConvert.ToChar(ReadElementContentAsString());
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
26WriteString(XmlConvert.ToString(value));
System\Runtime\Serialization\SchemaExporter.cs (4)
169isValueTypeElement = GetAnnotationMarkup(IsValueTypeName, XmlConvert.ToString(classDataContract.IsValueType), schema); 297nameAttribute.Value = genericArguments != null ? XmlConvert.DecodeName(dcqname.Name) : dcqname.Name; 486isValueTypeElement = GetAnnotationMarkup(IsValueTypeName, XmlConvert.ToString(dataContract.IsValueType), schema); 544GetAnnotationMarkup(IsValueTypeName, XmlConvert.ToString(dataContract.IsValueType), schema!) :
System\Runtime\Serialization\SchemaImporter.cs (3)
811return XmlConvert.ToBoolean(isValueTypeInnerText); 1029return XmlConvert.ToBoolean(emitDefaultValueAttribute.Value); 1158return XmlConvert.ToBoolean(isDictionaryInnerText);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
562string name = XmlConvert.DecodeName(xmlReader.LocalName);
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
585writer.WriteRaw(XmlConvert.ToString(value)); 620writer.WriteRaw(XmlConvert.ToString(value));
System\Xml\XmlConverter.cs (14)
41return XmlConvert.ToBoolean(value); 70return XmlConvert.ToInt32(value); 98return XmlConvert.ToInt64(value); 126return XmlConvert.ToSingle(value); 154return XmlConvert.ToDouble(value); 182return XmlConvert.ToDecimal(value); 219return XmlConvert.ToDateTime(value, XmlDateTimeSerializationMode.RoundtripKind); 264return XmlConvert.ToTimeSpan(value); 385public static string ToString(int value) { return XmlConvert.ToString(value); } 386public static string ToString(long value) { return XmlConvert.ToString(value); } 387public static string ToString(float value) { return XmlConvert.ToString(value); } 388public static string ToString(double value) { return XmlConvert.ToString(value); } 389public static string ToString(decimal value) { return XmlConvert.ToString(value); } 390public static string ToString(TimeSpan value) { return XmlConvert.ToString(value); }
System\Xml\XmlDictionaryWriter.cs (1)
188WriteString(XmlConvert.ToString(value));
System\Xml\XmlUTF8TextReader.cs (1)
658XmlConvert.VerifyNCName(s);
System\Xml\XmlUTF8TextWriter.cs (1)
695WriteText(XmlConvert.ToString(value));
System.Private.Xml (494)
System\Xml\BinaryXml\XmlBinaryReader.cs (12)
1121return XmlConvert.ToBoolean(string.Empty); 1211return XmlConvert.ToDateTime(string.Empty, XmlDateTimeSerializationMode.RoundtripKind); 1306return XmlConvert.ToDouble(string.Empty); 1401return XmlConvert.ToSingle(string.Empty); 1496return XmlConvert.ToDecimal(string.Empty); 1591return XmlConvert.ToInt32(string.Empty); 1686return XmlConvert.ToInt64(string.Empty); 3451XmlConvert.VerifyCharData(val, ExceptionType.ArgumentException, ExceptionType.XmlException); 3524throw XmlConvert.CreateInvalidCharException(ch, '\0', ExceptionType.XmlException); 3534throw XmlConvert.CreateInvalidSurrogatePairException(ch, (char)lowSurr); 3943return XmlConvert.ToString(GetSingle(_tokDataPos)); 3946return XmlConvert.ToString(GetDouble(_tokDataPos));
System\Xml\Core\CharEntityEncoderFallback.cs (1)
90throw XmlConvert.CreateInvalidSurrogatePairException(charUnknownHigh, charUnknownLow);
System\Xml\Core\XmlCharCheckingReader.cs (1)
623XmlConvert.VerifyCharData(value, ExceptionType.ArgumentException, ExceptionType.XmlException);
System\Xml\Core\XmlCharCheckingWriter.cs (5)
83throw XmlConvert.CreateInvalidCharException(pubid, i); 295XmlConvert.VerifyNMTOKEN(name); 305XmlConvert.VerifyQName(name, ExceptionType.XmlException); 327XmlConvert.VerifyCharData(str, ExceptionType.ArgumentException); 332XmlConvert.VerifyCharData(data, offset, len, ExceptionType.ArgumentException);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (3)
33throw XmlConvert.CreateInvalidCharException(pubid, i); 240XmlConvert.VerifyNMTOKEN(name); 249XmlConvert.VerifyQName(name, ExceptionType.XmlException);
System\Xml\Core\XmlEncodedRawTextWriter.cs (4)
570throw XmlConvert.CreateInvalidCharException(ch, '\0'); 1627throw XmlConvert.CreateInvalidSurrogatePairException((char)lowChar, (char)ch); 1631throw XmlConvert.CreateInvalidHighSurrogateCharException((char)ch); 1642throw XmlConvert.CreateInvalidCharException((char)ch, '\0');
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (1)
468throw XmlConvert.CreateInvalidCharException(ch, '\0');
System\Xml\Core\XmlRawWriter.cs (1)
200WriteString(XmlConvert.ToString(value));
System\Xml\Core\XmlReader.cs (18)
163return XmlConvert.ToBoolean(InternalReadContentAsString()); 182return XmlConvert.ToDateTime(InternalReadContentAsString(), XmlDateTimeSerializationMode.RoundtripKind); 201return XmlConvert.ToDateTimeOffset(InternalReadContentAsString()); 220return XmlConvert.ToDouble(InternalReadContentAsString()); 239return XmlConvert.ToSingle(InternalReadContentAsString()); 258return XmlConvert.ToDecimal(InternalReadContentAsString()); 277return XmlConvert.ToInt32(InternalReadContentAsString()); 296return XmlConvert.ToInt64(InternalReadContentAsString()); 375return XmlConvert.ToBoolean(string.Empty); 395return XmlConvert.ToDateTime(string.Empty, XmlDateTimeSerializationMode.RoundtripKind); 416return XmlConvert.ToDouble(string.Empty); 437return XmlConvert.ToSingle(string.Empty); 457return XmlConvert.ToDecimal(string.Empty); 477return XmlConvert.ToInt32(string.Empty); 497return XmlConvert.ToInt64(string.Empty); 1791result += $", Name=\"{_reader.Name}\", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_reader.Value)}\""; 1799result += $", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_reader.Value)}\""; 1805result += $", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_reader.Value)}\"";
System\Xml\Core\XmlTextEncoder.cs (7)
103throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar); 204throw XmlConvert.CreateInvalidHighSurrogateCharException(ch); 222throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar); 355throw XmlConvert.CreateInvalidSurrogatePairException(text[i], ch); 360throw XmlConvert.CreateInvalidHighSurrogateCharException(ch); 417throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, ch); 424throw XmlConvert.CreateInvalidHighSurrogateCharException(ch);
System\Xml\Core\XmlTextReaderImpl.cs (1)
5068switch (attr.StringValue.AsSpan().Trim(XmlConvert.WhitespaceChars))
System\Xml\Core\XmlTextWriter.cs (1)
1751switch (value.AsSpan().Trim(XmlConvert.WhitespaceChars))
System\Xml\Core\XmlUtf8RawTextWriter.cs (4)
492throw XmlConvert.CreateInvalidCharException(ch, '\0'); 1454throw XmlConvert.CreateInvalidSurrogatePairException((char)lowChar, (char)ch); 1458throw XmlConvert.CreateInvalidHighSurrogateCharException((char)ch); 1469throw XmlConvert.CreateInvalidCharException((char)ch, '\0');
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (1)
420throw XmlConvert.CreateInvalidCharException(ch, '\0');
System\Xml\Core\XmlWellFormedWriter.cs (2)
364XmlConvert.VerifyQName(name, ExceptionType.XmlException); 986throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar);
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
65XmlConvert.VerifyQName(name, ExceptionType.XmlException); 887throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar);
System\Xml\Core\XmlWellFormedWriterHelpers.cs (4)
400_singleStringValue = XmlConvert.TrimString(_singleStringValue); 406ReadOnlySpan<char> valAfter = valBefore.AsSpan().Trim(XmlConvert.WhitespaceChars); 426item.data = XmlConvert.TrimStringStart((string)item.data); 467item.data = XmlConvert.TrimStringEnd((string)item.data);
System\Xml\Core\XmlWriter.cs (9)
216WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 223WriteString(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException)); 262WriteString(XmlConvert.ToString(value)); 268WriteString(XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind)); 283WriteString(XmlConvert.ToString(value)); 289WriteString(XmlConvert.ToString(value)); 295WriteString(XmlConvert.ToString(value)); 301WriteString(XmlConvert.ToString(value)); 307WriteString(XmlConvert.ToString(value));
System\Xml\Core\XmlWriterAsync.cs (2)
202return WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 209return WriteStringAsync(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
System\Xml\Core\XsdValidatingReader.cs (1)
173_validator.SourceUri = XmlConvert.ToUri(reader.BaseURI); // Not using XmlResolver.ResolveUri as it checks for relative Uris,reader.BaseURI will be absolute file paths or string.Empty
System\Xml\Dom\DocumentSchemaValidator.cs (1)
246_validator.SourceUri = XmlConvert.ToUri(_document.BaseURI);
System\Xml\Dom\DocumentXmlWriter.cs (5)
283XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 291XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 299XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 320XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 331XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException);
System\Xml\Dom\XmlNode.cs (4)
1353switch (elem.GetAttribute("xml:space").AsSpan().Trim(XmlConvert.WhitespaceChars)) 1471result += $", Name=\"{_node.Name}\", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_node.Value!)}\""; 1479result += $", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_node.Value!)}\""; 1483result += $", Name=\"{documentType.Name}\", SYSTEM=\"{documentType.SystemId}\", PUBLIC=\"{documentType.PublicId}\", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(documentType.InternalSubset!)}\"";
System\Xml\Schema\DataTypeImplementation.cs (26)
1104string[] splitString = XmlConvert.SplitString(s); 1120string[] splitString = XmlConvert.SplitString(s); 1536exception = XmlConvert.TryToBoolean(s, out boolValue); 1619exception = XmlConvert.TryToSingle(s, out singleValue); 1704exception = XmlConvert.TryToDouble(s, out doubleValue); 1797exception = XmlConvert.TryToDecimal(s, out decimalValue); 1889exception = XmlConvert.TryToTimeSpan(s, out timeSpanValue); 2424byteArrayValue = XmlConvert.FromBinHexString(s, false); 2624exception = XmlConvert.TryToUri(s, out uri); 3122exception = XmlConvert.TryToInteger(s, out decimalValue); 3238exception = XmlConvert.TryToInt64(s, out int64Value); 3292exception = XmlConvert.TryToInt32(s, out int32Value); 3347exception = XmlConvert.TryToInt16(s, out int16Value); 3401exception = XmlConvert.TryToSByte(s, out sbyteValue); 3487exception = XmlConvert.TryToUInt64(s, out uint64Value); 3541exception = XmlConvert.TryToUInt32(s, out uint32Value); 3595exception = XmlConvert.TryToUInt16(s, out uint16Value); 3648exception = XmlConvert.TryToByte(s, out byteValue); 3693value = XmlConvert.ToDouble(s); 3715value = XmlConvert.ToSingle(s); 3785return XmlConvert.ToChar(s); 3804exception = XmlConvert.TryToChar(s, out charValue); 3824decimal value = XmlConvert.ToDecimal(s); 3849exception = XmlConvert.TryToDecimal(s, out decimalValue); 3881return XmlConvert.ToGuid(s); 3900exception = XmlConvert.TryToGuid(s, out guid);
System\Xml\Schema\DtdParser.cs (1)
275XmlConvert.VerifyName(docTypeName);
System\Xml\Schema\FacetChecker.cs (6)
1442exception = XmlConvert.TryToUri(s, out _); 1447exception = XmlConvert.TryVerifyNormalizedString(s); 1451exception = XmlConvert.TryVerifyTOKEN(s); 1466exception = XmlConvert.TryVerifyNMTOKEN(s); 1470exception = XmlConvert.TryVerifyName(s); 1477exception = XmlConvert.TryVerifyNCName(s);
System\Xml\Schema\Inference\Infer.cs (16)
1461XmlConvert.ToSByte(s); 1478XmlConvert.ToByte(s); 1492XmlConvert.ToInt16(s); 1509XmlConvert.ToUInt16(s); 1523XmlConvert.ToInt32(s); 1540XmlConvert.ToUInt32(s); 1554XmlConvert.ToInt64(s); 1571XmlConvert.ToUInt64(s); 1585double dbValue = XmlConvert.ToDouble(s); 1598float flValue = XmlConvert.ToSingle(s); 1602if (string.Equals(XmlConvert.ToString(flValue), XmlConvert.ToString(dbValue), StringComparison.OrdinalIgnoreCase)) 1628XmlConvert.ToSingle(s); 1648XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind); 1662XmlConvert.ToTimeSpan(s); 2365XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\Schema\NamespaceList.cs (2)
44string[] splitString = XmlConvert.SplitString(namespaces); 57XmlConvert.ToUri(splitString[i]); // can throw
System\Xml\Schema\Preprocessor.cs (3)
509XmlConvert.ToUri(uri); // can throw 1888XmlConvert.VerifyTOKEN(notation.Public); // can throw 2050xso.IdAttribute = NameTable.Add(XmlConvert.VerifyNCName(xso.IdAttribute));
System\Xml\Schema\SchemaCollectionpreProcessor.cs (7)
306XmlConvert.ToUri(tns); // can throw 319XmlConvert.VerifyTOKEN(schema.Version); // can throw 370XmlConvert.ToUri(loc); // can throw 417XmlConvert.ToUri(ns); //can throw 1546XmlConvert.ToUri(notation.Public); // can throw 1561XmlConvert.ToUri(notation.System); // can throw 1716xso.IdAttribute = NameTable.Add(XmlConvert.VerifyNCName(xso.IdAttribute));
System\Xml\Schema\XmlSchemaParticle.cs (4)
26return (_flags & Occurs.Min) == 0 ? null : XmlConvert.ToString(_minOccurs); 37_minOccurs = XmlConvert.ToInteger(value); 52return (_flags & Occurs.Max) == 0 ? null : (_maxOccurs == decimal.MaxValue) ? "unbounded" : XmlConvert.ToString(_maxOccurs); 69_maxOccurs = XmlConvert.ToInteger(value);
System\Xml\Schema\XmlSchemaValidator.cs (2)
1663_context.IsNill = XmlConvert.ToBoolean(xsiNil); 2744string[] nsList = XmlConvert.SplitString(namespaces);
System\Xml\Schema\XmlValueConverter.cs (105)
524return Convert.FromBase64String(XmlConvert.TrimString(value)); 612return XmlConvert.FromBinHexString(value.AsSpan().Trim(XmlConvert.WhitespaceChars), false); 803throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" })); 811throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int64" })); 819throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt64" })); 827throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Byte" })); 835throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int16" })); 843throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "SByte" })); 851throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt16" })); 859throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" })); 867throw new OverflowException(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt32" })); 899if (TypeCode == XmlTypeCode.Decimal) return XmlConvert.ToDecimal((string)value); 900return XmlConvert.ToInteger((string)value); 924if (TypeCode == XmlTypeCode.Decimal) return DecimalToInt32(XmlConvert.ToDecimal((string)value)); 925return XmlConvert.ToInt32((string)value); 949if (TypeCode == XmlTypeCode.Decimal) return DecimalToInt64(XmlConvert.ToDecimal((string)value)); 950return XmlConvert.ToInt64((string)value); 981if (TypeCode == XmlTypeCode.Decimal) return XmlConvert.ToString((decimal)value); 982return XmlConvert.ToString(decimal.Truncate((decimal)value)); 986return XmlConvert.ToString((int)value); 990return XmlConvert.ToString((long)value); 999if (sourceType == Int32Type) return XmlConvert.ToString((int)value); 1000if (sourceType == Int64Type) return XmlConvert.ToString((long)value); 1035if (destinationType == StringType) return XmlConvert.ToString((int)value); 1050if (destinationType == StringType) return XmlConvert.ToString((long)value); 1165if (TypeCode == XmlTypeCode.Float) return ((double)XmlConvert.ToSingle((string)value)); 1166return XmlConvert.ToDouble((string)value); 1209if (TypeCode == XmlTypeCode.Float) return XmlConvert.ToSingle((string)value); 1210return ((float)XmlConvert.ToDouble((string)value)); 1233if (TypeCode == XmlTypeCode.Float) return XmlConvert.ToString(ToSingle((double)value)); 1234return XmlConvert.ToString((double)value); 1238if (TypeCode == XmlTypeCode.Float) return XmlConvert.ToString((float)value); 1239return XmlConvert.ToString((double)(float)value); 1568return XmlConvert.ToBoolean((string)value); 1577if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 1632return XmlConvert.ToString((bool)value); 1640if (sourceType == BooleanType) return XmlConvert.ToString((bool)value); 1658if (destinationType == StringType) return XmlConvert.ToString((bool)value); 1671if (destinationType == BooleanType) return XmlConvert.ToBoolean((string)value); 1730case XmlTypeCode.HexBinary: return XmlConvert.ToBinHexString((byte[])value); 1793if (destinationType == UriType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string)value); 1869if (sourceType == StringType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string)value); 2030return XmlConvert.ToBoolean((string)value); 2038if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 2095return XmlConvert.ToDecimal((string)value); 2103if (sourceType == StringType) return XmlConvert.ToDecimal((string)value); 2117return XmlConvert.ToDouble((string)value); 2125if (sourceType == StringType) return XmlConvert.ToDouble((string)value); 2139return XmlConvert.ToInt32((string)value); 2147if (sourceType == StringType) return XmlConvert.ToInt32((string)value); 2161return XmlConvert.ToInt64((string)value); 2169if (sourceType == StringType) return XmlConvert.ToInt64((string)value); 2183return XmlConvert.ToSingle((string)value); 2191if (sourceType == StringType) return XmlConvert.ToSingle((string)value); 2203return XmlConvert.ToString((bool)value); 2215return XmlConvert.ToString((decimal)value); 2219return XmlConvert.ToString((double)value); 2223return XmlConvert.ToString((int)value); 2227return XmlConvert.ToString((long)value); 2231return XmlConvert.ToString((float)value); 2239if (sourceType == BooleanType) return XmlConvert.ToString((bool)value); 2240if (sourceType == ByteType) return XmlConvert.ToString((byte)value); 2244if (sourceType == DecimalType) return XmlConvert.ToString((decimal)value); 2245if (sourceType == DoubleType) return XmlConvert.ToString((double)value); 2246if (sourceType == Int16Type) return XmlConvert.ToString((short)value); 2247if (sourceType == Int32Type) return XmlConvert.ToString((int)value); 2248if (sourceType == Int64Type) return XmlConvert.ToString((long)value); 2249if (sourceType == SByteType) return XmlConvert.ToString((sbyte)value); 2250if (sourceType == SingleType) return XmlConvert.ToString((float)value); 2253if (sourceType == UInt16Type) return XmlConvert.ToString((ushort)value); 2254if (sourceType == UInt32Type) return XmlConvert.ToString((uint)value); 2255if (sourceType == UInt64Type) return XmlConvert.ToString((ulong)value); 2273if (destinationType == StringType) return XmlConvert.ToString((bool)value); 2293if (destinationType == StringType) return XmlConvert.ToString((decimal)value); 2303if (destinationType == StringType) return XmlConvert.ToString((double)value); 2313if (destinationType == StringType) return XmlConvert.ToString((int)value); 2323if (destinationType == StringType) return XmlConvert.ToString((long)value); 2334if (destinationType == BooleanType) return XmlConvert.ToBoolean((string)value); 2335if (destinationType == ByteType) return Int32ToByte(XmlConvert.ToInt32((string)value)); 2339if (destinationType == DecimalType) return XmlConvert.ToDecimal((string)value); 2340if (destinationType == DoubleType) return XmlConvert.ToDouble((string)value); 2341if (destinationType == Int16Type) return Int32ToInt16(XmlConvert.ToInt32((string)value)); 2342if (destinationType == Int32Type) return XmlConvert.ToInt32((string)value); 2343if (destinationType == Int64Type) return XmlConvert.ToInt64((string)value); 2344if (destinationType == SByteType) return Int32ToSByte(XmlConvert.ToInt32((string)value)); 2345if (destinationType == SingleType) return XmlConvert.ToSingle((string)value); 2347if (destinationType == UInt16Type) return Int32ToUInt16(XmlConvert.ToInt32((string)value)); 2348if (destinationType == UInt32Type) return Int64ToUInt32(XmlConvert.ToInt64((string)value)); 2349if (destinationType == UInt64Type) return DecimalToUInt64(XmlConvert.ToDecimal((string)value)); 2350if (destinationType == UriType) return XmlConvert.ToUri((string)value); 2369if (sourceType == StringType) return XmlConvert.ToBoolean((string)value); 2373if (sourceType == StringType) return Int32ToByte(XmlConvert.ToInt32((string)value)); 2389if (sourceType == StringType) return XmlConvert.ToDecimal((string)value); 2393if (sourceType == StringType) return XmlConvert.ToDouble((string)value); 2397if (sourceType == StringType) return Int32ToInt16(XmlConvert.ToInt32((string)value)); 2401if (sourceType == StringType) return XmlConvert.ToInt32((string)value); 2405if (sourceType == StringType) return XmlConvert.ToInt64((string)value); 2409if (sourceType == StringType) return Int32ToSByte(XmlConvert.ToInt32((string)value)); 2413if (sourceType == StringType) return XmlConvert.ToSingle((string)value); 2421if (sourceType == StringType) return Int32ToUInt16(XmlConvert.ToInt32((string)value)); 2425if (sourceType == StringType) return Int64ToUInt32(XmlConvert.ToInt64((string)value)); 2429if (sourceType == StringType) return DecimalToUInt64(XmlConvert.ToDecimal((string)value)); 2433if (sourceType == StringType) return XmlConvert.ToUri((string)value); 3093return new List<string>(XmlConvert.SplitString(value));
System\Xml\Schema\XsdBuilder.cs (2)
2482return XmlConvert.ToBoolean(value); 2522string[] stringValues = XmlConvert.SplitString(value);
System\Xml\Schema\XsdValidator.cs (1)
427context!.IsNill = XmlConvert.ToBoolean(xsiNil);
System\Xml\Serialization\Mappings.cs (6)
107return XmlConvert.EncodeLocalName(name); 116return XmlConvert.EncodeLocalName(name); 121return new XmlQualifiedName(XmlConvert.EncodeLocalName(name.Substring(colon + 1)), XmlConvert.EncodeLocalName(name.Substring(0, colon))).ToString(); 128return XmlConvert.DecodeName(name); 349get { return IsAnonymousType ? XmlConvert.EncodeLocalName(_typeDesc!.Name) : _typeName; }
System\Xml\Serialization\PrimitiveXmlSerializers.cs (30)
31WriteElementStringRaw(@"int", @"", System.Xml.XmlConvert.ToString((int)((int)o))); 42WriteElementStringRaw(@"boolean", @"", System.Xml.XmlConvert.ToString((bool)((bool)o))); 53WriteElementStringRaw(@"short", @"", System.Xml.XmlConvert.ToString((short)((short)o))); 64WriteElementStringRaw(@"long", @"", System.Xml.XmlConvert.ToString((long)((long)o))); 75WriteElementStringRaw(@"float", @"", System.Xml.XmlConvert.ToString((float)((float)o))); 86WriteElementStringRaw(@"double", @"", System.Xml.XmlConvert.ToString((double)((double)o))); 99WriteElementStringRaw(@"decimal", @"", System.Xml.XmlConvert.ToString(d)); 122WriteElementStringRaw(@"dateTimeOffset", @"", System.Xml.XmlConvert.ToString(dto)); 133WriteElementStringRaw(@"unsignedByte", @"", System.Xml.XmlConvert.ToString((byte)((byte)o))); 144WriteElementStringRaw(@"byte", @"", System.Xml.XmlConvert.ToString((sbyte)((sbyte)o))); 155WriteElementStringRaw(@"unsignedShort", @"", System.Xml.XmlConvert.ToString((ushort)((ushort)o))); 166WriteElementStringRaw(@"unsignedInt", @"", System.Xml.XmlConvert.ToString((uint)((uint)o))); 177WriteElementStringRaw(@"unsignedLong", @"", System.Xml.XmlConvert.ToString((ulong)((ulong)o))); 202WriteElementStringRaw(@"guid", @"", System.Xml.XmlConvert.ToString(guid)); 214WriteElementStringRaw(@"TimeSpan", @"", System.Xml.XmlConvert.ToString(timeSpan)); 286o = System.Xml.XmlConvert.ToInt32(Reader.ReadElementString()); 310o = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 334o = System.Xml.XmlConvert.ToInt16(Reader.ReadElementString()); 358o = System.Xml.XmlConvert.ToInt64(Reader.ReadElementString()); 382o = System.Xml.XmlConvert.ToSingle(Reader.ReadElementString()); 406o = System.Xml.XmlConvert.ToDouble(Reader.ReadElementString()); 430o = System.Xml.XmlConvert.ToDecimal(Reader.ReadElementString()); 484o = System.Xml.XmlConvert.ToDateTimeOffset(Reader.ReadElementString()); 508o = System.Xml.XmlConvert.ToByte(Reader.ReadElementString()); 532o = System.Xml.XmlConvert.ToSByte(Reader.ReadElementString()); 556o = System.Xml.XmlConvert.ToUInt16(Reader.ReadElementString()); 580o = System.Xml.XmlConvert.ToUInt32(Reader.ReadElementString()); 604o = System.Xml.XmlConvert.ToUInt64(Reader.ReadElementString()); 657o = System.Xml.XmlConvert.ToGuid(Reader.ReadElementString()); 687o = System.Xml.XmlConvert.ToTimeSpan(Reader.ReadElementString());
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (17)
328if (root == null || XmlConvert.ToBoolean(root)) 1194"Boolean" => XmlConvert.ToBoolean(value), 1195"Int32" => XmlConvert.ToInt32(value), 1196"Int16" => XmlConvert.ToInt16(value), 1197"Int64" => XmlConvert.ToInt64(value), 1198"Single" => XmlConvert.ToSingle(value), 1199"Double" => XmlConvert.ToDouble(value), 1200"Decimal" => XmlConvert.ToDecimal(value), 1201"Byte" => XmlConvert.ToByte(value), 1202"SByte" => XmlConvert.ToSByte(value), 1203"UInt16" => XmlConvert.ToUInt16(value), 1204"UInt32" => XmlConvert.ToUInt32(value), 1205"UInt64" => XmlConvert.ToUInt64(value), 1206"Guid" => XmlConvert.ToGuid(value), 1207"Char" => XmlConvert.ToChar(value), 1208"TimeSpan" => XmlConvert.ToTimeSpan(value), 1209"DateTimeOffset" => XmlConvert.ToDateTimeOffset(value),
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (16)
1157"Boolean" => XmlConvert.ToString((bool)o), 1158"Int32" => XmlConvert.ToString((int)o), 1159"Int16" => XmlConvert.ToString((short)o), 1160"Int64" => XmlConvert.ToString((long)o), 1161"Single" => XmlConvert.ToString((float)o), 1162"Double" => XmlConvert.ToString((double)o), 1163"Decimal" => XmlConvert.ToString((decimal)o), 1164"Byte" => XmlConvert.ToString((byte)o), 1165"SByte" => XmlConvert.ToString((sbyte)o), 1166"UInt16" => XmlConvert.ToString((ushort)o), 1167"UInt32" => XmlConvert.ToString((uint)o), 1168"UInt64" => XmlConvert.ToString((ulong)o), 1170"Guid" => XmlConvert.ToString((Guid)o), 1171"Char" => XmlConvert.ToString((char)o), 1172"TimeSpan" => XmlConvert.ToString((TimeSpan)o), 1173"DateTimeOffset" => XmlConvert.ToString((DateTimeOffset)o),
System\Xml\Serialization\SchemaObjectWriter.cs (18)
722WriteAttribute(@"fixed", @"", XmlConvert.ToString(o.IsFixed)); 809WriteAttribute(@"abstract", @"", XmlConvert.ToString((bool)(bool)o.@IsAbstract)); 814WriteAttribute(@"mixed", @"", XmlConvert.ToString((bool)(bool)o.@IsMixed)); 907WriteAttribute(@"mixed", @"", XmlConvert.ToString((bool)((bool)o.@IsMixed))); 960WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 961WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 973WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 974WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 977WriteAttribute(@"abstract", @"", XmlConvert.ToString((bool)(bool)o.@IsAbstract)); 1000WriteAttribute(@"nillable", @"", XmlConvert.ToString(o.IsNillable)); 1135WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 1136WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1149WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 1150WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1165WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 1166WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1206WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 1207WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
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 (20)
80return XmlConvert.ToString(value, "yyyy-MM-dd"); 87return XmlConvert.ToString(DateTime.MinValue + value.TimeOfDay, "HH:mm:ss.fffffffZ"); 91return XmlConvert.ToString(DateTime.MinValue + value.TimeOfDay, "HH:mm:ss.fffffffzzzzzz"); 99return XmlConvert.ToString(value, "yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz"); 104return XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind); 112return XmlConvert.TryFormat(value, "yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz", destination, out charsWritten); 116return XmlConvert.TryFormat(value, XmlDateTimeSerializationMode.RoundtripKind, destination, out charsWritten); 121return XmlConvert.ToString((ushort)value); 127return XmlConvert.EncodeName(name); 133return XmlConvert.EncodeLocalName(ncName); 139return XmlConvert.EncodeNmToken(nmToken); 179return XmlConvert.ToBinHexString(value); 382return XmlConvert.ToDateTime(value, XmlDateTimeSerializationMode.RoundtripKind); 388return XmlConvert.ToDateTime(value, formats); 410return (char)XmlConvert.ToUInt16(value); 416return XmlConvert.DecodeName(CollapseWhitespace(value)); 422return XmlConvert.DecodeName(CollapseWhitespace(value)); 428return XmlConvert.DecodeName(CollapseWhitespace(value)); 434return XmlConvert.DecodeName(CollapseWhitespace(value)); 451return XmlConvert.FromBinHexString(value.AsSpan().Trim(), true);
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\XmlSchemaExporter.cs (1)
923Type formatter = typeof(XmlConvert);
System\Xml\Serialization\XmlSerializationReader.cs (31)
558value = XmlConvert.ToInt32(ReadStringValue()); 560value = XmlConvert.ToBoolean(ReadStringValue()); 562value = XmlConvert.ToInt16(ReadStringValue()); 564value = XmlConvert.ToInt64(ReadStringValue()); 566value = XmlConvert.ToSingle(ReadStringValue()); 568value = XmlConvert.ToDouble(ReadStringValue()); 570value = XmlConvert.ToDecimal(ReadStringValue()); 580value = XmlConvert.ToByte(ReadStringValue()); 582value = XmlConvert.ToSByte(ReadStringValue()); 584value = XmlConvert.ToUInt16(ReadStringValue()); 586value = XmlConvert.ToUInt32(ReadStringValue()); 588value = XmlConvert.ToUInt64(ReadStringValue()); 630value = XmlConvert.ToInt32(ReadStringValue()); 632value = XmlConvert.ToBoolean(ReadStringValue()); 634value = XmlConvert.ToInt16(ReadStringValue()); 636value = XmlConvert.ToInt64(ReadStringValue()); 638value = XmlConvert.ToSingle(ReadStringValue()); 640value = XmlConvert.ToDouble(ReadStringValue()); 642value = XmlConvert.ToDecimal(ReadStringValue()); 652value = XmlConvert.ToByte(ReadStringValue()); 654value = XmlConvert.ToSByte(ReadStringValue()); 656value = XmlConvert.ToUInt16(ReadStringValue()); 658value = XmlConvert.ToUInt32(ReadStringValue()); 660value = XmlConvert.ToUInt64(ReadStringValue()); 671value = XmlConvert.ToTimeSpan(ReadStringValue()); 673value = XmlConvert.ToDateTimeOffset(ReadStringValue()); 837if (isNull == null || !XmlConvert.ToBoolean(isNull)) return false; 1147prefix = XmlConvert.DecodeName(prefix); 1148localName = XmlConvert.DecodeName(localName); 2860Writer.Write(typeof(XmlConvert).FullName); 4987Writer.Write(typeof(XmlConvert).FullName);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
862ToXXX = typeof(XmlConvert).GetMethod(
System\Xml\Serialization\XmlSerializationWriter.cs (18)
277tryFormatResult = XmlConvert.TryFormat((int)o, _primitivesBuffer, out charsWritten); 281tryFormatResult = XmlConvert.TryFormat((bool)o, _primitivesBuffer, out charsWritten); 285tryFormatResult = XmlConvert.TryFormat((short)o, _primitivesBuffer, out charsWritten); 289tryFormatResult = XmlConvert.TryFormat((long)o, _primitivesBuffer, out charsWritten); 293tryFormatResult = XmlConvert.TryFormat((float)o, _primitivesBuffer, out charsWritten); 297tryFormatResult = XmlConvert.TryFormat((double)o, _primitivesBuffer, out charsWritten); 301tryFormatResult = XmlConvert.TryFormat((decimal)o, _primitivesBuffer, out charsWritten); 309tryFormatResult = XmlConvert.TryFormat((ushort)(char)o, _primitivesBuffer, out charsWritten); 314tryFormatResult = XmlConvert.TryFormat((byte)o, _primitivesBuffer, out charsWritten); 318tryFormatResult = XmlConvert.TryFormat((sbyte)o, _primitivesBuffer, out charsWritten); 322tryFormatResult = XmlConvert.TryFormat((ushort)o, _primitivesBuffer, out charsWritten); 326tryFormatResult = XmlConvert.TryFormat((uint)o, _primitivesBuffer, out charsWritten); 330tryFormatResult = XmlConvert.TryFormat((ulong)o, _primitivesBuffer, out charsWritten); 355tryFormatResult = XmlConvert.TryFormat((Guid)o, _primitivesBuffer, out charsWritten); 361tryFormatResult = XmlConvert.TryFormat((TimeSpan)o, _primitivesBuffer, out charsWritten); 367tryFormatResult = XmlConvert.TryFormat((DateTimeOffset)o, _primitivesBuffer, out charsWritten); 468return GetQualifiedName(EscapeName ? XmlConvert.EncodeLocalName(xmlQualifiedName.Name) : xmlQualifiedName.Name, xmlQualifiedName.Namespace); 2427Writer.Write(typeof(XmlConvert).FullName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
161MethodInfo XmlConvert_ToString = typeof(XmlConvert).GetMethod(
System\Xml\Serialization\XmlSerializerNamespaces.cs (2)
68XmlConvert.VerifyNCName(prefix); 71XmlConvert.ToUri(ns);
System\Xml\XmlQualifiedName.cs (2)
135XmlConvert.VerifyNCName(Name); 138XmlConvert.ToUri(Namespace);
System\Xml\XPath\Internal\CompiledXPathExpr.cs (2)
216double r1 = XmlConvert.ToXPathDouble(x); 217double r2 = XmlConvert.ToXPathDouble(y);
System\Xml\XPath\Internal\IdQuery.cs (1)
48string[] ids = XmlConvert.SplitString(val);
System\Xml\XPath\Internal\NumberFunctions.cs (4)
40return XmlConvert.ToXPathDouble(arg); 59return XmlConvert.ToXPathDouble(nodeIterator.Current.Value); 111double n = XmlConvert.ToXPathDouble(_arg.Evaluate(nodeIterator)); 112return XmlConvert.XPathRound(n);
System\Xml\XPath\Internal\NumericExpr.cs (2)
53XmlConvert.ToXPathDouble(_opnd1.Evaluate(nodeIterator)), 54XmlConvert.ToXPathDouble(_opnd2.Evaluate(nodeIterator))
System\Xml\XPath\Internal\StringFunctions.cs (4)
169double num = XmlConvert.XPathRound(XmlConvert.ToXPathDouble(_argList[1].Evaluate(nodeIterator))) - 1; 177double num1 = XmlConvert.XPathRound(XmlConvert.ToXPathDouble(_argList[2].Evaluate(nodeIterator)));
System\Xml\XPath\Internal\XPathScanner.cs (2)
292return XmlConvert.ToXPathDouble(_xpathExpr.Substring(start, len)); 305return XmlConvert.ToXPathDouble(_xpathExpr.Substring(start, len));
System\Xml\XPath\XPathNavigator.cs (2)
2159result += $", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_nav.Value)}\""; 2165result += $", Value=\"{XmlConvert.EscapeValueForDebuggerDisplay(_nav.Value)}\"";
System\Xml\XPath\XPathNavigatorReader.cs (1)
268switch (tempNav.Value.AsSpan().Trim(XmlConvert.WhitespaceChars))
System\Xml\Xsl\Runtime\XmlIterators.cs (1)
36_idrefs = XmlConvert.SplitString(value);
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
347if (XmlConvert.TryToDouble(stringValue, out d) != null)
System\Xml\Xsl\Xslt\XsltInput.cs (2)
959string[] list = XmlConvert.SplitString(value); 1014string[] list = XmlConvert.SplitString(Value);
System\Xml\Xsl\Xslt\XsltLoader.cs (5)
618string[] qnames = XmlConvert.SplitString(_input.Value); 2663string[] list = XmlConvert.SplitString(modeList); 2829string[] tokens = XmlConvert.SplitString(elements); 2894foreach (string qname in XmlConvert.SplitString(_input.Value)) 2911foreach (string qname in XmlConvert.SplitString(_input.Value))
System\Xml\Xsl\XsltOld\Compiler.cs (2)
438string[] nsList = XmlConvert.SplitString(tokens); 776XmlConvert.ToUri(nsUri);
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
66if (1 <= XmlConvert.ToXPathDouble(version)) 459string[] elements = XmlConvert.SplitString(value);
System\Xml\Xsl\XsltOld\CopyOfAction.cs (1)
70string? value = XmlConvert.ToXPathString(result);
System\Xml\Xsl\XsltOld\NumberAction.cs (3)
69dblVal = XmlConvert.ToXPathDouble(value); 73dblVal = XmlConvert.XPathRound(dblVal); 80return XmlConvert.ToXPathString(value);
System\Xml\Xsl\XsltOld\Processor.cs (3)
242parameter = XmlConvert.ToXPathDouble(parameter); 582result = XmlConvert.ToXPathString(value); 664value = XmlConvert.ToXPathString(objValue);
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
107_priority = XmlConvert.ToXPathDouble(value);
System\Xml\Xsl\XsltOld\UseAttributeSetsAction.cs (1)
38string[] qnames = XmlConvert.SplitString(_useString);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (6)
287ComposeUri(XmlConvert.ToXPathString(arg0)!, baseUri ?? _manager!.Navigator.BaseURI) 379string key = XmlConvert.ToXPathString(result)!; 674return XmlConvert.ToXPathString(argument)!; 698return XmlConvert.ToXPathDouble(IteratorToString(it)); 703return XmlConvert.ToXPathDouble(nav.ToString()); 705return XmlConvert.ToXPathDouble(argument);
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
200string[] qnames = XmlConvert.SplitString(value);
System.Private.Xml.Linq (60)
System\Xml\Linq\XAttribute.cs (22)
258return XmlConvert.ToBoolean(attribute.value.ToLowerInvariant()); 275return XmlConvert.ToBoolean(attribute.value.ToLowerInvariant()); 295return XmlConvert.ToInt32(attribute.value); 312return XmlConvert.ToInt32(attribute.value); 332return XmlConvert.ToUInt32(attribute.value); 349return XmlConvert.ToUInt32(attribute.value); 369return XmlConvert.ToInt64(attribute.value); 386return XmlConvert.ToInt64(attribute.value); 406return XmlConvert.ToUInt64(attribute.value); 423return XmlConvert.ToUInt64(attribute.value); 443return XmlConvert.ToSingle(attribute.value); 460return XmlConvert.ToSingle(attribute.value); 480return XmlConvert.ToDouble(attribute.value); 497return XmlConvert.ToDouble(attribute.value); 517return XmlConvert.ToDecimal(attribute.value); 534return XmlConvert.ToDecimal(attribute.value); 591return XmlConvert.ToDateTimeOffset(attribute.value); 608return XmlConvert.ToDateTimeOffset(attribute.value); 628return XmlConvert.ToTimeSpan(attribute.value); 645return XmlConvert.ToTimeSpan(attribute.value); 665return XmlConvert.ToGuid(attribute.value); 682return XmlConvert.ToGuid(attribute.value);
System\Xml\Linq\XContainer.cs (11)
812int intValue => XmlConvert.ToString(intValue), 813double doubleValue => XmlConvert.ToString(doubleValue), 814long longValue => XmlConvert.ToString(longValue), 815float floatValue => XmlConvert.ToString(floatValue), 816decimal decimalValue => XmlConvert.ToString(decimalValue), 817short shortValue => XmlConvert.ToString(shortValue), 818sbyte sbyteValue => XmlConvert.ToString(sbyteValue), 819bool boolValue => XmlConvert.ToString(boolValue), 820DateTime dtValue => XmlConvert.ToString(dtValue, XmlDateTimeSerializationMode.RoundtripKind), 821DateTimeOffset dtoValue => XmlConvert.ToString(dtoValue), 822TimeSpan tsValue => XmlConvert.ToString(tsValue),
System\Xml\Linq\XDocumentType.cs (2)
25_name = XmlConvert.VerifyName(name); 83value = XmlConvert.VerifyName(value);
System\Xml\Linq\XElement.cs (22)
1367return XmlConvert.ToBoolean(element.Value.ToLowerInvariant()); 1387return XmlConvert.ToBoolean(element.Value.ToLowerInvariant()); 1410return XmlConvert.ToInt32(element.Value); 1430return XmlConvert.ToInt32(element.Value); 1453return XmlConvert.ToUInt32(element.Value); 1473return XmlConvert.ToUInt32(element.Value); 1496return XmlConvert.ToInt64(element.Value); 1516return XmlConvert.ToInt64(element.Value); 1539return XmlConvert.ToUInt64(element.Value); 1559return XmlConvert.ToUInt64(element.Value); 1582return XmlConvert.ToSingle(element.Value); 1602return XmlConvert.ToSingle(element.Value); 1625return XmlConvert.ToDouble(element.Value); 1645return XmlConvert.ToDouble(element.Value); 1668return XmlConvert.ToDecimal(element.Value); 1688return XmlConvert.ToDecimal(element.Value); 1754return XmlConvert.ToDateTimeOffset(element.Value); 1774return XmlConvert.ToDateTimeOffset(element.Value); 1797return XmlConvert.ToTimeSpan(element.Value); 1817return XmlConvert.ToTimeSpan(element.Value); 1840return XmlConvert.ToGuid(element.Value); 1860return XmlConvert.ToGuid(element.Value);
System\Xml\Linq\XName.cs (1)
25_localName = XmlConvert.VerifyNCName(localName);
System\Xml\Linq\XNodeBuilder.cs (1)
200WriteString(XmlConvert.ToString(value));
System\Xml\Linq\XProcessingInstruction.cs (1)
161XmlConvert.VerifyNCName(name);
System.Runtime.Serialization.Schema (6)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
428string typeName = XmlConvert.DecodeName(dataContract.XmlName.Name); 481string nestedTypeName = XmlConvert.DecodeName(originalName.Substring(nestedTypeIndex + 1)); 760string decodedName = XmlConvert.DecodeName(name); 1094enumMember.InitExpression = new CodeSnippetExpression(XmlConvert.ToString((ulong)longValue));
System\Runtime\Serialization\Schema\SchemaImportHelper.cs (2)
95return XmlConvert.EncodeLocalName(localName); 117XmlConvert.VerifyNCName(name);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXml.cs (1)
564XmlConvert.VerifyNCName(idValue);
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (1)
2618XmlConvert.VerifyNCName(prefix);
System\Xaml\XamlXmlWriter.cs (1)
481XmlConvert.VerifyNCName(prefix);
System.Xml (1)
System.Xml.cs (1)
196[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlConvert))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
124[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlConvert))]