1245 references to XmlConvert
PresentationFramework (10)
src\Framework\System\Windows\Annotations\Annotation.cs (6)
232writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 233writer.WriteAttributeString(AnnotationXmlConstants.Attributes.CreationTime, XmlConvert.ToString(_created)); 234writer.WriteAttributeString(AnnotationXmlConstants.Attributes.LastModificationTime, XmlConvert.ToString(_modified)); 645_id = XmlConvert.ToGuid(value); 652_created = XmlConvert.ToDateTime(value); 656_modified = XmlConvert.ToDateTime(value);
src\Framework\System\Windows\Annotations\AnnotationResource.cs (2)
143writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 479tempId = XmlConvert.ToGuid(value);
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
605annId = XmlConvert.ToGuid(nodeId); 951XPathNodeIterator iterator = tempNavigator.Select(@"//" + AnnotationXmlConstants.Prefixes.CoreSchemaPrefix + @":Annotation[@Id=""" + XmlConvert.ToString(id) + @"""]", _namespaceManager);
SMDiagnostics (2)
System\ServiceModel\Diagnostics\EncodingFallbackAwareXmlTextWriter.cs (2)
44if (XmlConvert.IsXmlChar(value[i])) 51XmlConvert.IsXmlSurrogatePair(value[i + 1], value[i]))
System.Activities.DurableInstancing (32)
System\Activities\DurableInstancing\XmlPropertyBag.cs (32)
170return XmlConvert.ToBoolean(value); 172return XmlConvert.ToByte(value); 174return XmlConvert.ToChar(value); 176return XmlConvert.ToDateTime(value, XmlDateTimeSerializationMode.RoundtripKind); 178return XmlConvert.ToDateTimeOffset(value); 180return XmlConvert.ToDecimal(value); 182return XmlConvert.ToDouble(value); 186return XmlConvert.ToGuid(value); 188return XmlConvert.ToInt32(value); 190return XmlConvert.ToInt64(value); 192return XmlConvert.ToSByte(value); 194return XmlConvert.ToInt16(value); 198return XmlConvert.ToTimeSpan(value); 202return XmlConvert.ToUInt32(value); 204return XmlConvert.ToUInt64(value); 208return XmlConvert.ToUInt16(value); 226return XmlConvert.ToString((bool)value); 230return XmlConvert.ToString((byte)value); 234return XmlConvert.ToString((char)value); 238return XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind); 242return XmlConvert.ToString((DateTimeOffset)value); 246return XmlConvert.ToString((decimal)value); 250return XmlConvert.ToString((double)value); 258return XmlConvert.ToString((Guid)value); 262return XmlConvert.ToString((int)value); 266return XmlConvert.ToString((long)value); 270return XmlConvert.ToString((sbyte)value); 274return XmlConvert.ToString((short)value); 282return XmlConvert.ToString((TimeSpan)value); 290return XmlConvert.ToString((uint)value); 294return XmlConvert.ToString((ulong)value); 302return XmlConvert.ToString((ushort)value);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierName.cs (1)
111XmlConvert.VerifyName(name);
System.Configuration (1)
System\Configuration\BaseConfigurationRecord.cs (1)
3582XmlConvert.VerifyName(name);
System.Data (197)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierName.cs (1)
111XmlConvert.VerifyName(name);
fx\src\data\System\Data\Common\BooleanStorage.cs (2)
154return XmlConvert.ToBoolean(s); 158return XmlConvert.ToString((Boolean) value);
fx\src\data\System\Data\Common\ByteStorage.cs (2)
220return XmlConvert.ToByte(s); 224return XmlConvert.ToString((Byte) value);
fx\src\data\System\Data\Common\CharStorage.cs (2)
158 return XmlConvert.ToChar(s); 162return XmlConvert.ToString((Char) value);
fx\src\data\System\Data\Common\DateTimeOffsetStorage.cs (2)
154return XmlConvert.ToDateTimeOffset(s); 158return XmlConvert.ToString((DateTimeOffset)value);
fx\src\data\System\Data\Common\DateTimeStorage.cs (4)
190retValue = XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.Unspecified); 193retValue = XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind); 201retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.Local); 204retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind);
fx\src\data\System\Data\Common\DecimalStorage.cs (2)
211return XmlConvert.ToDecimal(s); 215return XmlConvert.ToString((Decimal)value);
fx\src\data\System\Data\Common\DoubleStorage.cs (2)
218return XmlConvert.ToDouble(s); 222return XmlConvert.ToString((Double) value);
fx\src\data\System\Data\Common\Int16Storage.cs (2)
224return XmlConvert.ToInt16(s); 228return XmlConvert.ToString((Int16) value);
fx\src\data\System\Data\Common\Int32Storage.cs (2)
223return XmlConvert.ToInt32(s); 227return XmlConvert.ToString((Int32)value);
fx\src\data\System\Data\Common\Int64Storage.cs (2)
218return XmlConvert.ToInt64(s); 222return XmlConvert.ToString((Int64)value);
fx\src\data\System\Data\Common\SByteStorage.cs (2)
220return XmlConvert.ToSByte(s); 224return XmlConvert.ToString((SByte)value);
fx\src\data\System\Data\Common\SingleStorage.cs (2)
219return XmlConvert.ToSingle(s); 223return XmlConvert.ToString((Single)value);
fx\src\data\System\Data\Common\SQLConvert.cs (59)
525return XmlConvert.ToString((TimeSpan) value); 527return XmlConvert.ToString((Guid) value); 553return XmlConvert.ToTimeSpan((string) value); 601return XmlConvert.ToTimeSpan((string) value); 603return XmlConvert.ToGuid((string) value); 626return new SqlBoolean(XmlConvert.ToBoolean((string)value)); 628return new SqlByte(XmlConvert.ToByte((string)value)); 634return new SqlDateTime(XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind)); 638return new SqlDouble(XmlConvert.ToDouble((string)value)); 640return new SqlGuid(XmlConvert.ToGuid((string)value)); 642return new SqlInt16(XmlConvert.ToInt16((string)value)); 644return new SqlInt32(XmlConvert.ToInt32((string)value)); 646return new SqlInt64(XmlConvert.ToInt64((string)value)); 648return new SqlMoney(XmlConvert.ToDecimal((string)value)); 650return new SqlSingle(XmlConvert.ToSingle((string)value)); 661return XmlConvert.ToBoolean((string) value); 663return XmlConvert.ToChar((string) value); 665return XmlConvert.ToSByte((string) value); 667return XmlConvert.ToByte((string) value); 669return XmlConvert.ToInt16((string) value); 671return XmlConvert.ToUInt16((string) value); 673return XmlConvert.ToInt32((string) value); 675return XmlConvert.ToUInt32((string) value); 677return XmlConvert.ToInt64((string) value); 679return XmlConvert.ToUInt64((string) value); 681return XmlConvert.ToSingle((string) value); 683return XmlConvert.ToDouble((string) value); 685return XmlConvert.ToDecimal((string) value); 687return XmlConvert.ToDateTime((string)value, XmlDateTimeSerializationMode.RoundtripKind); 689return XmlConvert.ToGuid((string) value); 693return XmlConvert.ToDateTimeOffset((string)value); 698return XmlConvert.ToTimeSpan((string) value); 715return XmlConvert.ToString(((SqlBoolean)value).Value); 717return XmlConvert.ToString(((SqlByte)value).Value); 723return XmlConvert.ToString(((SqlDateTime)value).Value, XmlDateTimeSerializationMode.RoundtripKind); 727return XmlConvert.ToString(((SqlDouble)value).Value); 729return XmlConvert.ToString(((SqlGuid)value).Value); 731return XmlConvert.ToString(((SqlInt16)value).Value); 733return XmlConvert.ToString(((SqlInt32)value).Value); 735return XmlConvert.ToString(((SqlInt64)value).Value); 737return XmlConvert.ToString(((SqlMoney)value).Value); 739return XmlConvert.ToString(((SqlSingle)value).Value); 743return XmlConvert.ToString((bool) value); 745return XmlConvert.ToString((Char) value); 747return XmlConvert.ToString((SByte) value); 749return XmlConvert.ToString((Byte) value); 751return XmlConvert.ToString((Int16) value); 753return XmlConvert.ToString((UInt16) value); 755return XmlConvert.ToString((Int32) value); 757return XmlConvert.ToString((UInt32) value); 759return XmlConvert.ToString((Int64) value); 761return XmlConvert.ToString((UInt64) value); 763return XmlConvert.ToString((Single) value); 765return XmlConvert.ToString((Double) value); 767return XmlConvert.ToString((Decimal) value); 769return XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind); 771return XmlConvert.ToString((TimeSpan) value); 773return XmlConvert.ToString((Guid) value); 779return XmlConvert.ToString((DateTimeOffset)value);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (2)
228return XmlConvert.ToTimeSpan(s); 232return XmlConvert.ToString((TimeSpan)value);
fx\src\data\System\Data\Common\UInt16Storage.cs (2)
223return XmlConvert.ToUInt16(s); 227return XmlConvert.ToString((UInt16)value);
fx\src\data\System\Data\Common\UInt32Storage.cs (2)
223return XmlConvert.ToUInt32(s); 227return XmlConvert.ToString((UInt32)value);
fx\src\data\System\Data\Common\UInt64Storage.cs (2)
217return XmlConvert.ToUInt64(s); 221return XmlConvert.ToString((UInt64)value);
fx\src\data\System\Data\DataColumn.cs (3)
433this.encodedColumnName = XmlConvert.EncodeLocalName(this.ColumnName); 472if ((XmlConvert.DecodeName(value) == value) && (XmlConvert.EncodeName(value) != value))
fx\src\data\System\Data\DataSet.cs (2)
715if ((XmlConvert.DecodeName(value) == value) && 716(XmlConvert.EncodeName(value) != value))
fx\src\data\System\Data\DataTable.cs (3)
1719encodedTblName = XmlConvert.EncodeLocalName( this.TableName ); 1925if ((XmlConvert.DecodeName(value) == value) && 1926(XmlConvert.EncodeName(value) != value))
fx\src\data\System\Data\DataViewManager.cs (1)
116string table = XmlConvert.DecodeName(r.LocalName);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
475if (isNull != null && XmlConvert.ToBoolean(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (2)
570if (isNull != null && XmlConvert.ToBoolean(isNull)) { 576m_value = (byte)(XmlConvert.ToBoolean(reader.ReadElementString()) ? x_True : x_False);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (3)
570if (isNull != null && XmlConvert.ToBoolean(isNull)) { 576m_value = XmlConvert.ToByte(reader.ReadElementString()); 589writer.WriteString(XmlConvert.ToString(m_value));
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
529 if (isNull != null && XmlConvert.ToBoolean(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLChars.cs (1)
527 if (isNull != null && XmlConvert.ToBoolean(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (3)
627if (isNull != null && XmlConvert.ToBoolean(isNull)) { 633DateTime dt = XmlConvert.ToDateTime(reader.ReadElementString(), XmlDateTimeSerializationMode.RoundtripKind); 658writer.WriteString(XmlConvert.ToString(Value, x_ISO8601_DateTimeFormat));
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (1)
3258if (isNull != null && XmlConvert.ToBoolean(isNull)) {
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (3)
490if (isNull != null && XmlConvert.ToBoolean(isNull)) { 496m_value = XmlConvert.ToDouble(reader.ReadElementString()); 509writer.WriteString(XmlConvert.ToString(m_value));
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (2)
366if (isNull != null && XmlConvert.ToBoolean(isNull)) { 384writer.WriteString(XmlConvert.ToString(new Guid(m_value)));
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (3)
579if (isNull != null && XmlConvert.ToBoolean(isNull)) { 585m_value = XmlConvert.ToInt16(reader.ReadElementString()); 598writer.WriteString(XmlConvert.ToString(m_value));
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (3)
591if (isNull != null && XmlConvert.ToBoolean(isNull)) { 597m_value = XmlConvert.ToInt32(reader.ReadElementString()); 610writer.WriteString(XmlConvert.ToString(m_value));
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (3)
645if (isNull != null && XmlConvert.ToBoolean(isNull)) { 651m_value = XmlConvert.ToInt64(reader.ReadElementString()); 664writer.WriteString(XmlConvert.ToString(m_value));
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
631if (isNull != null && XmlConvert.ToBoolean(isNull)) { 637SqlMoney money = new SqlMoney(XmlConvert.ToDecimal(reader.ReadElementString())); 651writer.WriteString( XmlConvert.ToString(ToDecimal()) );
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (3)
494if (isNull != null && XmlConvert.ToBoolean(isNull)) { 500m_value = XmlConvert.ToSingle(reader.ReadElementString()); 513writer.WriteString(XmlConvert.ToString(m_value));
fx\src\data\System\Data\SQLTypes\SQLString.cs (1)
1007if (isNull != null && XmlConvert.ToBoolean(isNull)) {
fx\src\data\System\Data\SQLTypes\SqlXml.cs (1)
220 if (isNull != null && XmlConvert.ToBoolean(isNull)) {
fx\src\data\System\Data\XDRSchema.cs (4)
65_schemaName = XmlConvert.DecodeName(_schemaName); 416column = new DataColumn(XmlConvert.DecodeName(instanceName), type, null, 551table = new DataTable(XmlConvert.DecodeName(typeName)); 629String tbName = XmlConvert.DecodeName(typeName);
fx\src\data\System\Data\XmlDataLoader.cs (3)
898c = collection[XmlConvert.DecodeName(dataReader.LocalName.Substring(6))]; 1111if ((xsiNilString != null) && XmlConvert.ToBoolean(xsiNilString)) { 1255if (0 == text.Length && xsiNilString != null && XmlConvert.ToBoolean(xsiNilString)) {
fx\src\data\System\Data\XMLDiffLoader.cs (8)
181table = ds.Tables.GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI); 193DataColumn col = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI]; 217table = GetTable(XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI); 241DataColumn col = table.Columns[XmlConvert.DecodeName(ssync.LocalName), ssync.NamespaceURI]; 275table = ds.Tables.GetTable(XmlConvert.DecodeName(row.LocalName), row.NamespaceURI); 278table = GetTable(XmlConvert.DecodeName(row.LocalName), row.NamespaceURI); 290throw ExceptionBuilder.DiffgramMissingTable(XmlConvert.DecodeName(row.LocalName)); 343String ln =XmlConvert.DecodeName( row.LocalName) ;
fx\src\data\System\Data\xmlsaver.cs (16)
97node.SetAttribute(XmlConvert.EncodeLocalName(s), Keywords.MSPROPNS, v); 508rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 511rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName("NewDataSet")); 868dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName)); 871dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 886dsElement.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName("NewDataSet")); 888dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 975root.SetAttribute( Keywords.NAME, XmlConvert.EncodeLocalName( rel.RelationName )); 1733constraint.SetAttribute( Keywords.NAME, XmlConvert.EncodeLocalName( unique.SchemaName )); 1800constraint.SetAttribute( Keywords.NAME, XmlConvert.EncodeLocalName( foreign.SchemaName )); 1840constraint.SetAttribute( Keywords.NAME,XmlConvert.EncodeLocalName( foreign.SchemaName )); 1846constraint.SetAttribute( Keywords.REFER, XmlConvert.EncodeLocalName( foreign.SchemaName )); 1848constraint.SetAttribute( Keywords.REFER, XmlConvert.EncodeLocalName( _constraint.SchemaName )); 1863constraint.SetAttribute( Keywords.MSD_RELATIONNAME , Keywords.MSDNS, XmlConvert.EncodeLocalName( rel.RelationName )); 2435_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2484_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace);
fx\src\data\System\Data\XMLSchema.cs (25)
293string propName = XmlConvert.DecodeName(attrs[i].LocalName); 351string propName = XmlConvert.DecodeName(attrs[i].LocalName); 359DataTable table = _ds.Tables.GetTable(XmlConvert.DecodeName(typeName), element.QualifiedName.Namespace); 383strName = XmlConvert.DecodeName(node.GetAttribute(Keywords.NAME)); 392parentName = XmlConvert.DecodeName(parentName); 397childName = XmlConvert.DecodeName(childName); 431parentKey[i] = parent.Columns[XmlConvert.DecodeName(parentNames[i])]; 434childKey[i] = child.Columns[XmlConvert.DecodeName(childNames[i])]; 585ds.DataSetName = XmlConvert.DecodeName(_schemaName); 622ds.MainTableName = XmlConvert.DecodeName (mainName); 716ds.DataSetName = XmlConvert.DecodeName(((XmlSchemaElement)elements[0]).Name); 1000colName = XmlConvert.DecodeName(colName); 1083string refer = XmlConvert.DecodeName(keyref.Refer.Name); // check here!!! 1084string name = XmlConvert.DecodeName(keyref.Name); 1125string relName = XmlConvert.DecodeName(GetStringAttribute( keyref, Keywords.MSD_RELATIONNAME, keyref.Name)); 1181name = XmlConvert.DecodeName(keyNode.Name); 1228String typeName = XmlConvert.DecodeName(GetInstanceName(node)); 1343table = _ds.Tables.GetTable(XmlConvert.DecodeName(typeName), _TableUri); 1362table = new DataTable(XmlConvert.DecodeName(typeName) ); 1951string columnName = XmlConvert.DecodeName(GetInstanceName(attr)); 2112string columnName = XmlConvert.DecodeName(GetInstanceName(el)); 2258_ds.DataSetName = XmlConvert.DecodeName(dsName); 2281DataTable tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2403prefix = XmlConvert.DecodeName(prefix ); 2416tableName = XmlConvert.DecodeName(tableName);
fx\src\data\System\Data\XmlToDatasetMap.cs (3)
208string _columnLocalName = XmlConvert.EncodeLocalName(col.ColumnName); 295string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName); 364string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.TableName);
fx\src\data\System\NewXml\XmlDataDocument.cs (1)
428string docElemName = XmlConvert.EncodeLocalName( this.DataSet.DataSetName );
System.Data.Services (46)
System\Data\Services\Epm\EpmSyndicationContentDeSerializer.cs (2)
104resourceType.SetEpmValue(newRoot, element, XmlConvert.ToString(this.Item.LastUpdatedTime), this); 111resourceType.SetEpmValue(newRoot, element, XmlConvert.ToString(this.Item.PublishDate), this);
System\Data\Services\Parsing\WebConvert.cs (31)
298targetValue = XmlConvert.ToDateTime(text, XmlDateTimeSerializationMode.RoundtripKind); 328targetValue = XmlConvert.ToGuid(text); 403targetValue = XmlConvert.ToBoolean(text); 407targetValue = XmlConvert.ToByte(text); 411targetValue = XmlConvert.ToSByte(text); 415targetValue = XmlConvert.ToInt16(text); 419targetValue = XmlConvert.ToInt32(text); 425targetValue = XmlConvert.ToInt64(text); 437targetValue = XmlConvert.ToSingle(text); 448targetValue = XmlConvert.ToDouble(text); 456targetValue = XmlConvert.ToDecimal(text); 512targetValue = XmlConvert.ToBoolean(text); 516targetValue = XmlConvert.ToByte(text); 528targetValue = XmlConvert.ToSByte(text); 532targetValue = XmlConvert.ToDateTime(text, XmlDateTimeSerializationMode.RoundtripKind); 536targetValue = XmlConvert.ToDecimal(text); 540targetValue = XmlConvert.ToDouble(text); 548targetValue = XmlConvert.ToInt16(text); 552targetValue = XmlConvert.ToInt32(text); 556targetValue = XmlConvert.ToInt64(text); 565targetValue = XmlConvert.ToSingle(text); 629result = XmlConvert.ToString((bool)value); 633result = XmlConvert.ToString((byte)value); 637result = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind); 641result = XmlConvert.ToString((decimal)value); 645result = XmlConvert.ToString((double)value); 653result = XmlConvert.ToString((Int16)value); 657result = XmlConvert.ToString((Int32)value); 661result = XmlConvert.ToString((Int64)value); 665result = XmlConvert.ToString((SByte)value); 669result = XmlConvert.ToString((Single)value);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
1577xmlWriter.WriteAttributeString(facetName, XmlConvert.ToString((int)facetValue)); 1585xmlWriter.WriteAttributeString(facetName, XmlConvert.ToString((byte)facetValue)); 1589xmlWriter.WriteAttributeString(facetName, XmlConvert.ToString((DateTime)facetValue, "yyyy-MM-dd HH:mm:ss.fffZ"));
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
283throw new InvalidOperationException(Strings.ReflectionProvider_InvalidEntitySetProperty(property.Name, XmlConvert.EncodeName(((IDataServiceMetadataProvider)this).ContainerName)));
System\Data\Services\Serializers\JsonSerializer.cs (1)
278tagName = System.Xml.XmlConvert.EncodeName(elementType.Name);
System\Data\Services\Serializers\JsonWriter.cs (2)
192this.WriteCore(XmlConvert.ToString(value), /* quotes */ false); 230this.WriteCore(XmlConvert.ToString(value), /* quotes */ false);
System\Data\Services\Serializers\MetadataSerializer.cs (5)
269this.WriteEntityContainer(this.Writer, XmlConvert.EncodeName(this.Provider.ContainerName), metadataManager.ResourceSets, metadataManager.ResourceAssociationSets); 322xmlWriter.WriteAttributeString(XmlConstants.Name, XmlConvert.EncodeName(entityType.Name)); 354xmlWriter.WriteAttributeString(XmlConstants.BaseType, XmlConvert.EncodeName(entityType.BaseType.FullName)); 450xmlWriter.WriteAttributeString(XmlConstants.Name, XmlConvert.EncodeName(complexType.Name)); 897typeNamespace = XmlConvert.EncodeName(this.provider.ContainerName);
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
268if ((null != elementValue) && XmlConvert.ToBoolean(elementValue))
System.Data.Services.Client (46)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (10)
629result = XmlConvert.ToString((bool)value); 633result = XmlConvert.ToString((byte)value); 637result = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind); 641result = XmlConvert.ToString((decimal)value); 645result = XmlConvert.ToString((double)value); 653result = XmlConvert.ToString((Int16)value); 657result = XmlConvert.ToString((Int32)value); 661result = XmlConvert.ToString((Int64)value); 665result = XmlConvert.ToString((SByte)value); 669result = XmlConvert.ToString((Single)value);
System\Data\Services\Client\ClientConvert.cs (32)
142return XmlConvert.ToBoolean(propertyValue); 144return XmlConvert.ToByte(propertyValue); 148return XmlConvert.ToChar(propertyValue); 152return XmlConvert.ToDateTime(propertyValue, XmlDateTimeSerializationMode.RoundtripKind); 154return XmlConvert.ToDateTimeOffset(propertyValue); 156return XmlConvert.ToDecimal(propertyValue); 158return XmlConvert.ToDouble(propertyValue); 162return XmlConvert.ToInt16(propertyValue); 164return XmlConvert.ToInt32(propertyValue); 166return XmlConvert.ToInt64(propertyValue); 168return XmlConvert.ToSingle(propertyValue); 172return XmlConvert.ToSByte(propertyValue); 174return XmlConvert.ToTimeSpan(propertyValue); 178return XmlConvert.ToUInt16(propertyValue); 180return XmlConvert.ToUInt32(propertyValue); 182return XmlConvert.ToUInt64(propertyValue); 301return XmlConvert.ToString((bool)propertyValue); 303return XmlConvert.ToString((byte)propertyValue); 307return XmlConvert.ToString((char)propertyValue); 317return XmlConvert.ToString(dt.Kind == DateTimeKind.Unspecified && atomDateConstruct ? new DateTime(dt.Ticks, DateTimeKind.Utc) : dt, XmlDateTimeSerializationMode.RoundtripKind); 319return XmlConvert.ToString((DateTimeOffset)propertyValue); 321return XmlConvert.ToString((Decimal)propertyValue); 323return XmlConvert.ToString((Double)propertyValue); 327return XmlConvert.ToString((Int16)propertyValue); 329return XmlConvert.ToString((Int32)propertyValue); 331return XmlConvert.ToString((Int64)propertyValue); 333return XmlConvert.ToString((Single)propertyValue); 337return XmlConvert.ToString((SByte)propertyValue); 339return XmlConvert.ToString((TimeSpan)propertyValue); 343return XmlConvert.ToString((UInt16)propertyValue); 345return XmlConvert.ToString((UInt32)propertyValue); 347return XmlConvert.ToString((UInt64)propertyValue);
System\Data\Services\Client\DataServiceContext.cs (1)
2943writer.WriteElementString(XmlConstants.AtomUpdatedElementName, XmlConstants.AtomNamespace, XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.RoundtripKind));
System\Data\Services\Client\DataServiceRequest.cs (1)
216r = XmlConvert.ToInt64(sr.ReadToEnd());
System\Data\Services\Client\Epm\EpmSyndicationContentSerializer.cs (1)
227this.Target.WriteElementString(XmlConstants.AtomUpdatedElementName, XmlConstants.AtomNamespace, XmlConvert.ToString(DateTime.UtcNow, XmlDateTimeSerializationMode.RoundtripKind));
System\Data\Services\Client\Util.cs (1)
427return ((null != attributeValue) && XmlConvert.ToBoolean(attributeValue));
System.Data.Services.Design (1)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
516paramValue = XmlConvert.ToBoolean(value);
System.Data.SqlXml (29)
System\Xml\Xsl\Runtime\XmlIterators.cs (1)
36this.idrefs = XmlConvert.SplitString(value);
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
289if (XmlConvert.TryToDouble(stringValue, out d) != null) {
System\Xml\Xsl\Xslt\XsltInput.cs (2)
814string[] list = XmlConvert.SplitString(value); 855string[] list = XmlConvert.SplitString(Value);
System\Xml\Xsl\Xslt\XsltLoader.cs (5)
511string[] qnames = XmlConvert.SplitString(input.Value); 2454string[] list = XmlConvert.SplitString(modeList); 2581string[] tokens = XmlConvert.SplitString(elements); 2634foreach (string qname in XmlConvert.SplitString(input.Value)) { 2647foreach (string qname in XmlConvert.SplitString(input.Value)) {
System\Xml\Xsl\XsltOld\Compiler.cs (2)
399string[] nsList = XmlConvert.SplitString(tokens); 717XmlConvert.ToUri(nsUri);
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
61if (1 <= XmlConvert.ToXPathDouble(version)) { 387String[] elements = XmlConvert.SplitString(value);
System\Xml\Xsl\XsltOld\CopyOfAction.cs (1)
65string value = XmlConvert.ToXPathString(result);
System\Xml\Xsl\XsltOld\NumberAction.cs (3)
69dblVal = XmlConvert.ToXPathDouble(value); 72dblVal = XmlConvert.XPathRound(dblVal); 77return XmlConvert.ToXPathString(value);
System\Xml\Xsl\XsltOld\Processor.cs (3)
219parameter = XmlConvert.ToXPathDouble(parameter); 532result = XmlConvert.ToXPathString(value); 602value = XmlConvert.ToXPathString(objValue);
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
94this.priority = XmlConvert.ToXPathDouble(value);
System\Xml\Xsl\XsltOld\UseAttributesetsAction.cs (1)
38string[] qnames = XmlConvert.SplitString(this.useString);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (6)
244ComposeUri(XmlConvert.ToXPathString(arg0), baseUri ?? this.manager.Navigator.BaseURI) 315String key = XmlConvert.ToXPathString(result); 563return XmlConvert.ToXPathString(argument); 582return XmlConvert.ToXPathDouble(IteratorToString(it)); 586return XmlConvert.ToXPathDouble(nav.ToString()); 588return XmlConvert.ToXPathDouble(argument);
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
168string[] qnames = XmlConvert.SplitString(value);
System.IdentityModel (50)
System\IdentityModel\Metadata\MetadataSerializer.cs (11)
459isOptional = XmlConvert.ToBoolean(optionalString.ToLowerInvariant()); 833idpssoDescriptor.WantAuthenticationRequestsSigned = XmlConvert.ToBoolean(wantAuthnRequestSignedAttribute.ToLowerInvariant()); 936endpoint.IsDefault = XmlConvert.ToBoolean(isDefaultString.ToLowerInvariant()); 1575spssoDescriptor.AuthenticationRequestsSigned = XmlConvert.ToBoolean(authnRequestsSignedAttribute.ToLowerInvariant()); 1589spssoDescriptor.WantAssertionsSigned = XmlConvert.ToBoolean(wantAssertionsSignedAttribute.ToLowerInvariant()); 2109writer.WriteAttributeString(WSFederationMetadataConstants.Attributes.Optional, XmlConvert.ToString(claim.Optional)); 2353XmlConvert.ToString(identityProviderSingleSignOnDescriptor.WantAuthenticationRequestsSigned)); 2442writer.WriteAttributeString(Saml2MetadataConstants.Attributes.EndpointIsDefault, null, XmlConvert.ToString(indexedEP.IsDefault.Value)); 2933XmlConvert.ToString(serviceProviderSingleSignOnDescriptor.AuthenticationRequestsSigned)); 2939XmlConvert.ToString(serviceProviderSingleSignOnDescriptor.WantAssertionsSigned)); 3315writer.WriteAttributeString("nil", XmlSchema.InstanceNamespace, XmlConvert.ToString(true));
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (7)
201isOptional = XmlConvert.ToBoolean(optionalAttributeVal); 514allowRenewal = XmlConvert.ToBoolean(attrValue); 520renewalAfterExpiration = XmlConvert.ToBoolean(attrValue); 1226writer.WriteString(XmlConvert.ToString((bool)elementValue)); 1239writer.WriteString(XmlConvert.ToString((bool)elementValue)); 1260writer.WriteAttributeString(trustConstants.Attributes.Allow, XmlConvert.ToString(renewing.AllowRenewal)); 1261writer.WriteAttributeString(trustConstants.Attributes.OK, XmlConvert.ToString(renewing.OkForRenewalAfterExpiration));
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
98wi.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
171identity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\Saml2Id.cs (1)
46this.value = XmlConvert.VerifyNCName(value);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (20)
539length = XmlConvert.ToInt32(value); 558length = XmlConvert.ToInt32(value); 1985subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer)); 2684assertion.IssueInstant = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 2877writer.WriteAttributeString(Saml2Constants.Attributes.IssueInstant, XmlConvert.ToString(data.IssueInstant.ToUniversalTime(), DateTimeFormats.Generated)); 3240writer.WriteAttributeString("nil", XmlSchema.InstanceNamespace, XmlConvert.ToString(true)); 3722authnInstant = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 3731sessionNotOnOrAfter = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 3794writer.WriteAttributeString(Saml2Constants.Attributes.AuthnInstant, XmlConvert.ToString(data.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated)); 3805writer.WriteAttributeString(Saml2Constants.Attributes.SessionNotOnOrAfter, XmlConvert.ToString(data.SessionNotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated)); 4037conditions.NotBefore = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 4044conditions.NotOnOrAfter = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 4169writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.ToString(data.NotBefore.Value.ToUniversalTime(), DateTimeFormats.Generated)); 4175writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated)); 4803proxyRestriction.Count = XmlConvert.ToInt32(value); 4860writer.WriteAttributeString(Saml2Constants.Attributes.Count, XmlConvert.ToString(data.Count.Value)); 5291confirmationData.NotBefore = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 5298confirmationData.NotOnOrAfter = XmlConvert.ToDateTime(value, DateTimeFormats.Accepted); 5405writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.ToString(data.NotBefore.Value.ToUniversalTime(), DateTimeFormats.Generated)); 5411writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (4)
1407subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(samlStatement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer)); 1765int majorVersion = XmlConvert.ToInt32(attributeValue); 1773int minorVersion = XmlConvert.ToInt32(attributeValue); 2943XmlConvert.ToString(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated));
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (1)
250new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(time.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
104windowsIdentity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (2)
123mapToWindows = XmlConvert.ToBoolean(attribute.Value.ToLowerInvariant()); 586identity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\XmlUtil.cs (1)
148return !string.IsNullOrEmpty(xsiNil) && XmlConvert.ToBoolean(xsiNil);
System.Runtime.Serialization (56)
System\Runtime\Serialization\ClassDataContract.cs (1)
1432boundClassContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(stableName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(this.UnderlyingType), genericParams)), stableName.Namespace);
System\Runtime\Serialization\CodeExporter.cs (3)
428string typeName = XmlConvert.DecodeName(dataContract.StableName.Name); 479string nestedTypeName = XmlConvert.DecodeName(originalName.Substring(nestedTypeIndex + 1)); 791string decodedName = XmlConvert.DecodeName(name);
System\Runtime\Serialization\CollectionDataContract.cs (1)
1247boundCollectionContract.StableName = CreateQualifiedName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(this.StableName.Name), new GenericNameProvider(DataContract.GetClrTypeFullName(this.UnderlyingType), paramContracts)),
System\Runtime\Serialization\DataContract.cs (3)
1393return XmlConvert.EncodeLocalName(localName); 1400XmlConvert.VerifyNCName(name); 2577return new XmlQualifiedName(DataContract.EncodeLocalName(DataContract.ExpandGenericParameters(XmlConvert.DecodeName(stableName.Name), this)), stableName.Namespace);
System\Runtime\Serialization\DataContractSet.cs (1)
488XmlConvert.DecodeName(stableName.Name),
System\Runtime\Serialization\EnumDataContract.cs (2)
443return XmlConvert.ToString((ulong)value); 445return XmlConvert.ToString(value);
System\Runtime\Serialization\ExtensionDataReader.cs (14)
666this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<bool>)dataNode).GetValue() : (bool)dataNode.Value); 669this.value = XmlConvert.ToString((int)(isTypedNode ? ((DataNode<char>)dataNode).GetValue() : (char)dataNode.Value)); 672this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<byte>)dataNode).GetValue() : (byte)dataNode.Value); 675this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<short>)dataNode).GetValue() : (short)dataNode.Value); 678this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<int>)dataNode).GetValue() : (int)dataNode.Value); 681this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<long>)dataNode).GetValue() : (long)dataNode.Value); 684this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<float>)dataNode).GetValue() : (float)dataNode.Value); 687this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<double>)dataNode).GetValue() : (double)dataNode.Value); 690this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<decimal>)dataNode).GetValue() : (decimal)dataNode.Value); 700this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<sbyte>)dataNode).GetValue() : (sbyte)dataNode.Value); 703this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<ushort>)dataNode).GetValue() : (ushort)dataNode.Value); 706this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<uint>)dataNode).GetValue() : (uint)dataNode.Value); 709this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<ulong>)dataNode).GetValue() : (ulong)dataNode.Value); 719this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.Value);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
354return XmlConvert.DecodeName(xmlName);
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
86return XmlConvert.ToChar(ReadContentAsString()); 100return XmlConvert.ToChar(ReadElementContentAsString());
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
32WriteString(XmlConvert.ToString(value));
System\Runtime\Serialization\SchemaExporter.cs (4)
175isValueTypeElement = GetAnnotationMarkup(IsValueTypeName, XmlConvert.ToString(classDataContract.IsValueType), schema); 303nameAttribute.Value = genericArguments != null ? XmlConvert.DecodeName(dcqname.Name) : dcqname.Name; 481isValueTypeElement = GetAnnotationMarkup(IsValueTypeName, XmlConvert.ToString(dataContract.IsValueType), schema); 536GetAnnotationMarkup(IsValueTypeName, XmlConvert.ToString(dataContract.IsValueType), schema) :
System\Runtime\Serialization\SchemaImporter.cs (3)
829return XmlConvert.ToBoolean(isValueTypeInnerText); 1043return XmlConvert.ToBoolean(emitDefaultValueString); 1165return XmlConvert.ToBoolean(isDictionaryInnerText);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
577string name = XmlConvert.DecodeName(xmlReader.LocalName);
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
590writer.WriteRaw(XmlConvert.ToString(value)); 629writer.WriteRaw(XmlConvert.ToString(value));
System\Xml\XmlConverter.cs (14)
69return XmlConvert.ToBoolean(value); 98return XmlConvert.ToInt32(value); 126return XmlConvert.ToInt64(value); 154return XmlConvert.ToSingle(value); 182return XmlConvert.ToDouble(value); 210return XmlConvert.ToDecimal(value); 247return XmlConvert.ToDateTime(value, XmlDateTimeSerializationMode.RoundtripKind); 292return XmlConvert.ToTimeSpan(value); 414static public string ToString(int value) { return XmlConvert.ToString(value); } 415static public string ToString(Int64 value) { return XmlConvert.ToString(value); } 416static public string ToString(float value) { return XmlConvert.ToString(value); } 417static public string ToString(double value) { return XmlConvert.ToString(value); } 418static public string ToString(decimal value) { return XmlConvert.ToString(value); } 419static public string ToString(TimeSpan value) { return XmlConvert.ToString(value); }
System\Xml\XmlDictionaryWriter.cs (1)
724WriteString(XmlConvert.ToString(value));
System\Xml\XmlUTF8TextReader.cs (1)
419XmlConvert.VerifyNCName(s);
System\Xml\XmlUTF8TextWriter.cs (1)
1239WriteText(XmlConvert.ToString(value));
System.ServiceModel (21)
System\ServiceModel\Channels\MessageHeader.cs (1)
269return XmlConvert.ToBoolean(value);
System\ServiceModel\Channels\PeerHelpers.cs (1)
348result = XmlConvert.ToUInt64(reader.ReadElementString());
System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (1)
96assertion.SetAttribute(PrivacyNoticePolicyStrings.PrivacyNoticeVersionAttributeName, PrivacyNoticePolicyStrings.PrivacyNoticeNamespace, XmlConvert.ToString(settings.Version));
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
742childElement.SetAttribute(ReliableSessionPolicyStrings.Milliseconds, XmlConvert.ToString(milliseconds));
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
253milliseconds = XmlConvert.ToUInt64(millisecondsAttribute.Value);
System\ServiceModel\Description\ServiceReflector.cs (4)
166return XmlConvert.EncodeLocalName(name); 172return XmlConvert.DecodeName(name); 203XmlConvert.VerifyNCName(name); 262XmlConvert.VerifyNCName(name);
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (2)
556xml.WriteElementString("ValidFrom", XmlConvert.ToString(sessiontoken.ValidFrom, XmlDateTimeSerializationMode.Utc)); 557xml.WriteElementString("ValidTo", XmlConvert.ToString(sessiontoken.ValidTo, XmlDateTimeSerializationMode.Utc));
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (3)
238AddAuthenticationInstantClaim(claimsIdentity, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated)); 528AddAuthenticationInstantClaim(claimsIdentity, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated)); 533AddAuthenticationInstantClaim(claimsIdentity, XmlConvert.ToString(DateTime.UtcNow, DateTimeFormats.Generated));
System\ServiceModel\Security\SecurityTimestamp.cs (2)
149XmlConvert.ToString(this.CreationTimeUtc, XmlDateTimeSerializationMode.RoundtripKind), 150XmlConvert.ToString(this.ExpiryTimeUtc, XmlDateTimeSerializationMode.RoundtripKind));
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (2)
283claimTypeRequirement = new ClaimTypeRequirement(claimValue, XmlConvert.ToBoolean(optional)); 348attr.Value = XmlConvert.ToString(claimType.IsOptional);
System\ServiceModel\Transactions\OletxTransactionHeader.cs (2)
63XmlConvert.ToString(this.wsatInfo.Timeout)); 143timeout = XmlConvert.ToUInt32(attr);
System\ServiceModel\XmlUtil.cs (1)
37return XmlConvert.ToBoolean(booleanValue);
System.ServiceModel.Activation (3)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (3)
84service = CreatetWorkflowServiceAndSetCompiledExpressionRoot(null, activityStream, XName.Get(XmlConvert.EncodeLocalName(serviceName), serviceNamespace)); 125XName.Get(XmlConvert.EncodeLocalName(VirtualPathUtility.GetFileName(ServiceHostingEnvironment.FullVirtualPath)), 366service.ConfigurationName = XmlConvert.EncodeLocalName(service.Body.DisplayName);
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\WorkflowService.cs (1)
171this.inferedServiceName = XName.Get(XmlConvert.EncodeLocalName(this.Body.DisplayName));
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
686this.DurableInstancingOptions.ScopeName = XName.Get(XmlConvert.EncodeLocalName(Path.GetFileName(virtualPathExtension.VirtualPath)),
System.ServiceModel.Discovery (6)
System\ServiceModel\Discovery\FindCriteria.cs (1)
386XmlConvert.ToString(this.Duration));
System\ServiceModel\Discovery\ResolveCriteria.cs (1)
154XmlConvert.ToString(this.duration));
System\ServiceModel\Discovery\SerializationUtility.cs (4)
46localname = XmlConvert.DecodeName(localname); 106result = XmlConvert.ToUInt32(uintString); 123string encodedLocalName = XmlConvert.EncodeLocalName(qname.Name.Trim()); 249result = XmlConvert.ToTimeSpan(timespanString);
System.ServiceModel.Web (36)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (4)
102serviceData.Initialize(new WebServiceTypeData(XmlConvert.DecodeName(contract.Name), XmlConvert.DecodeName(contract.Namespace), contract.ContractType), 109WebServiceMethodData methodData = new WebServiceMethodData(serviceData, XmlConvert.DecodeName(operation.Name), parameterDataDictionary, useHttpGet); 122WebServiceParameterData parameterData = new WebServiceParameterData(XmlConvert.DecodeName(messagePart.Name), paramType, p);
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
536context.writer.WriteString(XmlConvert.ToString('a'));
System\ServiceModel\Dispatcher\QueryStringConverter.cs (31)
78return parameter == null ? default(Byte) : XmlConvert.ToByte(parameter); 80return parameter == null ? default(SByte) : XmlConvert.ToSByte(parameter); 82return parameter == null ? default(Int16) : XmlConvert.ToInt16(parameter); 91return parameter == null ? default(Int32) : XmlConvert.ToInt32(parameter); 95return parameter == null ? default(Int64) : XmlConvert.ToInt64(parameter); 97return parameter == null ? default(UInt16) : XmlConvert.ToUInt16(parameter); 99return parameter == null ? default(UInt32) : XmlConvert.ToUInt32(parameter); 101return parameter == null ? default(UInt64) : XmlConvert.ToUInt64(parameter); 103return parameter == null ? default(Single) : XmlConvert.ToSingle(parameter); 105return parameter == null ? default(Double) : XmlConvert.ToDouble(parameter); 107return parameter == null ? default(Char) : XmlConvert.ToChar(parameter); 109return parameter == null ? default(Decimal) : XmlConvert.ToDecimal(parameter); 124result = parameter == null ? default(TimeSpan) : XmlConvert.ToTimeSpan(parameter); 130return parameter == null ? default(Guid) : XmlConvert.ToGuid(parameter); 177return XmlConvert.ToString((Byte) parameter); 179return XmlConvert.ToString((SByte) parameter); 181return XmlConvert.ToString((Int16) parameter); 190return XmlConvert.ToString((int) parameter); 194return XmlConvert.ToString((Int64) parameter); 196return XmlConvert.ToString((UInt16) parameter); 198return XmlConvert.ToString((uint) parameter); 200return XmlConvert.ToString((UInt64) parameter); 202return XmlConvert.ToString((Single) parameter); 204return XmlConvert.ToString((double) parameter); 206return XmlConvert.ToString((char) parameter); 208return XmlConvert.ToString((decimal) parameter); 210return XmlConvert.ToString((bool) parameter); 214return XmlConvert.ToString((DateTime) parameter, XmlDateTimeSerializationMode.RoundtripKind); 219return XmlConvert.ToString((TimeSpan) parameter); 223return XmlConvert.ToString((Guid) parameter); 227return XmlConvert.ToString((DateTimeOffset) parameter);
System.Web.Extensions (43)
Compilation\XmlSerializer\DataSvcMapFileSerializer.cs (8)
143WriteAttribute(@"Ignore", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Ignore))); 146WriteAttribute(@"IsMergeResult", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMergeResult))); 149WriteAttribute(@"SourceId", @"", System.Xml.XmlConvert.ToString((global::System.Int32)((global::System.Int32)o.@SourceId))); 193WriteAttribute(@"SourceId", @"", System.Xml.XmlConvert.ToString((global::System.Int32)((global::System.Int32)o.@SourceId))); 543o.@Ignore = System.Xml.XmlConvert.ToBoolean(Reader.Value); 548o.@IsMergeResult = System.Xml.XmlConvert.ToBoolean(Reader.Value); 553o.@SourceId = System.Xml.XmlConvert.ToInt32(Reader.Value); 625o.@SourceId = System.Xml.XmlConvert.ToInt32(Reader.Value);
Compilation\XmlSerializer\SvcMapFileSerializer.cs (28)
114WriteAttribute(@"Ignore", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Ignore))); 117WriteAttribute(@"IsMergeResult", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMergeResult))); 120WriteAttribute(@"SourceId", @"", System.Xml.XmlConvert.ToString((global::System.Int32)((global::System.Int32)o.@SourceId))); 164WriteAttribute(@"SourceId", @"", System.Xml.XmlConvert.ToString((global::System.Int32)((global::System.Int32)o.@SourceId))); 183WriteElementStringRaw(@"GenerateAsynchronousMethods", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@GenerateAsynchronousMethods))); 185WriteElementStringRaw(@"GenerateTaskBasedAsynchronousMethod", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@GenerateTaskBasedAsynchronousMethod))); 187WriteElementStringRaw(@"EnableDataBinding", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@EnableDataBinding))); 198WriteElementStringRaw(@"ImportXmlTypes", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@ImportXmlTypes))); 199WriteElementStringRaw(@"GenerateInternalTypes", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@GenerateInternalTypes))); 200WriteElementStringRaw(@"GenerateMessageContracts", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@GenerateMessageContracts))); 221WriteElementStringRaw(@"GenerateSerializableTypes", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@GenerateSerializableTypes))); 224WriteElementStringRaw(@"UseSerializerForFaults", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@UseSerializerForFaults))); 227WriteElementStringRaw(@"Wrapped", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Wrapped))); 229WriteElementStringRaw(@"ReferenceAllAssemblies", @"urn:schemas-microsoft-com:xml-wcfservicemap", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@ReferenceAllAssemblies))); 650o.@Ignore = System.Xml.XmlConvert.ToBoolean(Reader.Value); 655o.@IsMergeResult = System.Xml.XmlConvert.ToBoolean(Reader.Value); 660o.@SourceId = System.Xml.XmlConvert.ToInt32(Reader.Value); 732o.@SourceId = System.Xml.XmlConvert.ToInt32(Reader.Value); 800o.@GenerateAsynchronousMethods = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 806o.@GenerateTaskBasedAsynchronousMethod = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 812o.@EnableDataBinding = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 848o.@ImportXmlTypes = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 854o.@GenerateInternalTypes = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 860o.@GenerateMessageContracts = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 926o.@GenerateSerializableTypes = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 938o.@UseSerializerForFaults = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 944o.@Wrapped = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 950o.@ReferenceAllAssemblies = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString());
Script\Services\WebServiceTypeData.cs (7)
212string schemaTargetNamespace = XmlConvert.DecodeName(schema.TargetNamespace); 219knownTypeData = ImportEnum(XmlConvert.DecodeName(schemaType.Name), schemaTargetNamespace, schemaType.QualifiedName, simpleTypeRestriction, schemaType.Annotation); 225knownTypeData = new WebServiceTypeData(XmlConvert.DecodeName(schemaType.Name), schemaTargetNamespace); 245typeData = new WebServiceEnumData(XmlConvert.DecodeName(qname.Name), XmlConvert.DecodeName(qname.Namespace), Enum.GetNames(type), Enum.GetValues(type), isUlong); 248typeData = new WebServiceTypeData(XmlConvert.DecodeName(qname.Name), XmlConvert.DecodeName(qname.Namespace));
System.Web.Services (110)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
104parameter.Name = CodeIdentifier.MakeValid(XmlConvert.DecodeName(part.Name));
System\Web\Services\Description\HttpProtocolReflector.cs (1)
68part.Name = XmlConvert.EncodeLocalName(parameterInfo.Name);
System\Web\Services\Description\ProtocolImporter.cs (3)
146return CodeIdentifier.MakeValid(XmlConvert.DecodeName(Operation.Name)); 374className = XmlConvert.DecodeName(service.Name); 385className = XmlConvert.DecodeName(className);
System\Web\Services\Description\ProtocolReflector.cs (4)
197string messageName = XmlConvert.EncodeLocalName(methodAttr.MessageName.Length == 0 ? Method.Name : methodAttr.MessageName); 222string messageName = XmlConvert.EncodeLocalName(methodAttr.MessageName.Length == 0 ? Method.Name : methodAttr.MessageName); 362string bindingName = XmlConvert.EncodeLocalName(reflectedBinding.bindingAttr.Name); 414operation.Name = XmlConvert.EncodeLocalName(method.Name);
System\Web\Services\Description\ServiceDescription.cs (1)
1563return XmlConvert.ToBoolean(requiredAttr.Value);
System\Web\Services\Description\ServiceDescriptionReflector.cs (2)
152service.Name = XmlConvert.EncodeLocalName(name); 227throw new InvalidOperationException(Res.GetString(Res.BothAndUseTheMessageNameUseTheMessageName3, method, existingMethod, XmlConvert.EncodeLocalName(messageName)));
System\Web\Services\Description\ServiceDescriptionSerializer.cs (90)
243WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 265WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 287WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 526WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 565WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 686WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 715WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 775WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 806WriteAttribute(@"group", @"", System.Xml.XmlConvert.ToString((global::System.Int32)((global::System.Int32)o.@Group))); 809WriteAttribute(@"capture", @"", System.Xml.XmlConvert.ToString((global::System.Int32)((global::System.Int32)o.@Capture))); 815WriteAttribute(@"ignoreCase", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IgnoreCase))); 843WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 865WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 888WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 919WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 950WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 983WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1015WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1048WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1168WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1189WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1210WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1245WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1267WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1274WriteAttribute(@"soapActionRequired", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@SoapActionRequired))); 1305WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1330WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 1352WriteAttribute(@"required", @"http://schemas.xmlsoap.org/wsdl/", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@Required))); 2233WriteAttribute(@"abstract", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsAbstract))); 2250WriteAttribute(@"nillable", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsNillable))); 2643WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2677WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2711WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2745WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2779WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2813WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2847WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2881WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2915WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2949WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 2983WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 3017WriteAttribute(@"fixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsFixed))); 3133WriteAttribute(@"abstract", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsAbstract))); 3139WriteAttribute(@"mixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMixed))); 3488WriteAttribute(@"mixed", @"", System.Xml.XmlConvert.ToString((global::System.Boolean)((global::System.Boolean)o.@IsMixed))); 4384o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 4434o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 4484o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 4770o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 4840o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 4998o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5070o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5136o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5198o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5270o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5336o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5399o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5459o.@Group = System.Xml.XmlConvert.ToInt32(Reader.Value); 5463o.@Capture = System.Xml.XmlConvert.ToInt32(Reader.Value); 5475o.@IgnoreCase = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5527o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5579o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5642o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5692o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5840o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5886o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5932o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5944o.@SoapActionRequired = System.Xml.XmlConvert.ToBoolean(Reader.Value); 5998o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 6060o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 6110o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 6164o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 6218o.@Required = System.Xml.XmlConvert.ToBoolean(Reader.Value); 7743o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 7815o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 7887o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 7959o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8031o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8103o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8175o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8247o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8319o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8391o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8463o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8535o.@IsFixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8724o.@IsAbstract = System.Xml.XmlConvert.ToBoolean(Reader.Value); 8752o.@IsNillable = System.Xml.XmlConvert.ToBoolean(Reader.Value); 9158o.@IsAbstract = System.Xml.XmlConvert.ToBoolean(Reader.Value); 9166o.@IsMixed = System.Xml.XmlConvert.ToBoolean(Reader.Value); 9947o.@IsMixed = System.Xml.XmlConvert.ToBoolean(Reader.Value);
System\Web\Services\Description\SoapProtocolImporter.cs (5)
455attribute.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(XmlConvert.DecodeName(Binding.Name)))); 682requestMessageName = XmlConvert.DecodeName(requestMessageName); 686responseMessageName = XmlConvert.DecodeName(responseMessageName); 722string methodName = CodeIdentifier.MakeValid(XmlConvert.DecodeName(this.Operation.Name)); 726string uniqueMethodName = MethodNames.AddUnique(CodeIdentifier.MakeValid(XmlConvert.DecodeName(methodName)), this.Operation);
System\Web\Services\Description\SoapProtocolReflector.cs (1)
204part.Name = XmlConvert.EncodeLocalName(member.MemberName);
System\Web\Services\Description\WebReferenceOptions.cs (2)
226WriteElementStringRaw(@"verbose", @"http://microsoft.com/webReference/", System.Xml.XmlConvert.ToString((System.Boolean)((System.Boolean)o.@Verbose))); 361o.@Verbose = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString());
System.Workflow.ComponentModel (5)
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (1)
82writer.WriteQualifiedName(XmlConvert.EncodeName(typeQualifiedName.Name), typeQualifiedName.Namespace);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (4)
226string decodedName = XmlConvert.DecodeName(reader.LocalName); 343string propName = XmlConvert.DecodeName(reader.LocalName); 2392tagName = XmlConvert.EncodeName(tagName); 2583positionalArgs[i] = XmlConvert.DecodeName((string)positionalArgs[i]);
System.Xml (486)
System\Xml\BinaryXml\XmlBinaryReader.cs (12)
987return XmlConvert.ToBoolean(String.Empty); 1069return XmlConvert.ToDateTime(String.Empty, XmlDateTimeSerializationMode.RoundtripKind); 1155return XmlConvert.ToDouble(String.Empty); 1241return XmlConvert.ToSingle(String.Empty); 1327return XmlConvert.ToDecimal(String.Empty); 1413return XmlConvert.ToInt32(String.Empty); 1499return XmlConvert.ToInt64(String.Empty); 3055XmlConvert.VerifyCharData(val, ExceptionType.ArgumentException, ExceptionType.XmlException); 3126throw XmlConvert.CreateInvalidCharException(ch, '\0', ExceptionType.XmlException); 3134throw XmlConvert.CreateInvalidSurrogatePairException(ch, chNext); 3506return XmlConvert.ToString( GetSingle( this.tokDataPos ) ); 3509return XmlConvert.ToString( GetDouble( this.tokDataPos ) );
System\Xml\Core\CharEntityEncoderFallback.cs (1)
105throw XmlConvert.CreateInvalidSurrogatePairException( charUnknownHigh, charUnknownLow );
System\Xml\Core\XmlCharCheckingReader.cs (1)
554XmlConvert.VerifyCharData( value, ExceptionType.ArgumentException, ExceptionType.XmlException );
System\Xml\Core\XmlCharCheckingWriter.cs (5)
107throw XmlConvert.CreateInvalidCharException( pubid, i ); 271XmlConvert.VerifyNMTOKEN( name ); 278XmlConvert.VerifyQName( name, ExceptionType.XmlException ); 295XmlConvert.VerifyCharData( str, ExceptionType.ArgumentException ); 299XmlConvert.VerifyCharData( data, offset, len, ExceptionType.ArgumentException );
System\Xml\Core\XmlCharCheckingWriterAsync.cs (3)
26throw XmlConvert.CreateInvalidCharException( pubid, i ); 189XmlConvert.VerifyNMTOKEN( name ); 196XmlConvert.VerifyQName( name, ExceptionType.XmlException );
System\Xml\Core\XmlConfiguration.cs (5)
35XmlConvert.TryToBoolean(value, out result); 66XmlConvert.TryToBoolean(value, out result); 93XmlConvert.TryToBoolean(value, out result); 125XmlConvert.TryToBoolean(value, out result); 152XmlConvert.TryToBoolean(value, out result);
System\Xml\Core\XmlEncodedRawTextWriter.cs (4)
541throw XmlConvert.CreateInvalidCharException( ch, '\0' ); 1396throw XmlConvert.CreateInvalidSurrogatePairException( (char)lowChar, (char)ch ); 1400throw XmlConvert.CreateInvalidHighSurrogateCharException( (char)ch ); 1409throw XmlConvert.CreateInvalidCharException( (char)ch, '\0' );
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (1)
363throw XmlConvert.CreateInvalidCharException( ch, '\0' );
System\Xml\Core\XmlRawWriter.cs (1)
193WriteString(XmlConvert.ToString(value));
System\Xml\Core\XmlReader.cs (25)
216return XmlConvert.ToBoolean(InternalReadContentAsString()); 230return XmlConvert.ToDateTime(InternalReadContentAsString(), XmlDateTimeSerializationMode.RoundtripKind); 244return XmlConvert.ToDateTimeOffset(InternalReadContentAsString()); 258return XmlConvert.ToDouble(InternalReadContentAsString()); 272return XmlConvert.ToSingle(InternalReadContentAsString()); 286return XmlConvert.ToDecimal(InternalReadContentAsString()); 300return XmlConvert.ToInt32(InternalReadContentAsString()); 314return XmlConvert.ToInt64(InternalReadContentAsString()); 381return XmlConvert.ToBoolean(string.Empty); 397return XmlConvert.ToDateTime(string.Empty, XmlDateTimeSerializationMode.RoundtripKind); 414return XmlConvert.ToDouble(string.Empty); 431return XmlConvert.ToSingle(string.Empty); 448return XmlConvert.ToDecimal(string.Empty); 465return XmlConvert.ToInt32(string.Empty); 482return XmlConvert.ToInt64(string.Empty); 873throw XmlConvert.CreateInvalidNameArgumentException(name, "name"); 890throw XmlConvert.CreateInvalidNameArgumentException(localName, "localName"); 912throw XmlConvert.CreateInvalidNameArgumentException(name, "name"); 946throw XmlConvert.CreateInvalidNameArgumentException(localName, "localName"); 984throw XmlConvert.CreateInvalidNameArgumentException(name, "name"); 1007throw XmlConvert.CreateInvalidNameArgumentException(localName, "localName"); 1348throw XmlConvert.CreateInvalidNameArgumentException(localName, "localName"); 1743result += ", Name=\"" + reader.Name + "\", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay( reader.Value ) + '"'; 1751result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay( reader.Value ) + '"'; 1757result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay( reader.Value ) + '"';
System\Xml\Core\XmlTextEncoder.cs (7)
93throw XmlConvert.CreateInvalidSurrogatePairException( lowChar, highChar ); 191throw XmlConvert.CreateInvalidHighSurrogateCharException( ch ); 206throw XmlConvert.CreateInvalidSurrogatePairException( lowChar, highChar ); 318throw XmlConvert.CreateInvalidSurrogatePairException( text[i], ch ); 322throw XmlConvert.CreateInvalidHighSurrogateCharException( ch ); 374throw XmlConvert.CreateInvalidSurrogatePairException( lowChar, ch ); 380throw XmlConvert.CreateInvalidHighSurrogateCharException( ch );
System\Xml\Core\XmlTextReaderImpl.cs (24)
3279if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 5, XmlDeclarationBegining ) || 3367if ( XmlConvert.StrEqual( ps.chars, ps.charPos, nameEndPos - ps.charPos, "version" ) && xmlDeclState == 0 ) { 3375if ( XmlConvert.StrEqual( ps.chars, ps.charPos, nameEndPos - ps.charPos, "encoding" ) && 3385if ( XmlConvert.StrEqual( ps.chars, ps.charPos, nameEndPos - ps.charPos, "standalone" ) && 3458if ( XmlConvert.StrEqual( ps.chars, ps.charPos, pos - ps.charPos, "1.0" ) ) { 3479if ( XmlConvert.StrEqual( ps.chars, ps.charPos, pos - ps.charPos, "yes" ) ) { 3482else if ( XmlConvert.StrEqual( ps.chars, ps.charPos, pos - ps.charPos, "no" ) ) { 3599if ( XmlConvert.StrEqual( chars, pos, 6, "CDATA[" ) ) { 3790if ( XmlConvert.StrEqual( chars, pos, 6, "CDATA[" ) ) { 3984if ( prefixLen == lastPrefix.Length && XmlConvert.StrEqual( chars, startPos, prefixLen, lastPrefix ) ) { 4140if ( !XmlConvert.StrEqual( chars, ps.charPos, locLen, startTagNode.localName ) ) { 4147if ( !XmlConvert.StrEqual( chars, ps.charPos, prefLen, startTagNode.prefix ) || 4149!XmlConvert.StrEqual( chars, colonPos + 1, locLen, startTagNode.localName ) ) { 4629switch ( XmlConvert.TrimString(attr.StringValue) ) { 6053if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 7, "DOCTYPE" ) ) { 6126if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 6, "PUBLIC" ) ) { 6157if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 6, "SYSTEM" ) ) { 6928if ( prefixLen == lastPrefix.Length && XmlConvert.StrEqual( ps.chars, startPos, prefixLen, lastPrefix ) ) { 7385Debug.Assert( XmlConvert.StrEqual( ps.chars, ps.charPos - 2, 2, "?>" ) ); 7392Debug.Assert( XmlConvert.StrEqual( ps.chars, ps.charPos - 3, 3, "-->" ) ); 7399Debug.Assert( XmlConvert.StrEqual( ps.chars, ps.charPos - 3, 3, "]]>" ) ); 7505if ( XmlConvert.StrEqual( chars, pos + 2, 7, "[CDATA[" ) ) { 7523if ( XmlConvert.StrEqual( chars, ps.charPos + 2, endPos - ps.charPos - 2, curNode.GetNameWPrefix( nameTable ) ) && 7559if ( XmlConvert.StrEqual( ps.chars, ps.charPos + 1, endPos - ps.charPos - 1, curNode.localName ) &&
System\Xml\Core\XmlTextReaderImplAsync.cs (16)
1111if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 5, XmlDeclarationBegining ) || 1199if ( XmlConvert.StrEqual( ps.chars, ps.charPos, nameEndPos - ps.charPos, "version" ) && xmlDeclState == 0 ) { 1207if ( XmlConvert.StrEqual( ps.chars, ps.charPos, nameEndPos - ps.charPos, "encoding" ) && 1217if ( XmlConvert.StrEqual( ps.chars, ps.charPos, nameEndPos - ps.charPos, "standalone" ) && 1291if ( XmlConvert.StrEqual( ps.chars, ps.charPos, pos - ps.charPos, "1.0" ) ) { 1312if ( XmlConvert.StrEqual( ps.chars, ps.charPos, pos - ps.charPos, "yes" ) ) { 1315else if ( XmlConvert.StrEqual( ps.chars, ps.charPos, pos - ps.charPos, "no" ) ) { 1417if (XmlConvert.StrEqual(chars, pos, 6, "CDATA[")) { 1628if (XmlConvert.StrEqual(chars, pos, 6, "CDATA[")) { 1818if (prefixLen == lastPrefix.Length && XmlConvert.StrEqual(chars, startPos, prefixLen, lastPrefix)) { 1946if (!XmlConvert.StrEqual(chars, ps.charPos, locLen, startTagNode.localName)) { 1953if (!XmlConvert.StrEqual(chars, ps.charPos, prefLen, startTagNode.prefix) || 1955!XmlConvert.StrEqual(chars, colonPos + 1, locLen, startTagNode.localName)) { 4105if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 7, "DOCTYPE" ) ) { 4183if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 6, "PUBLIC" ) ) { 4214if ( !XmlConvert.StrEqual( ps.chars, ps.charPos, 6, "SYSTEM" ) ) {
System\Xml\Core\XmlTextWriter.cs (1)
1413value = XmlConvert.TrimString(value);
System\Xml\Core\XmlUtf8RawTextWriter.cs (4)
477throw XmlConvert.CreateInvalidCharException( ch, '\0' ); 1268throw XmlConvert.CreateInvalidSurrogatePairException( (char)lowChar, (char)ch ); 1272throw XmlConvert.CreateInvalidHighSurrogateCharException( (char)ch ); 1281throw XmlConvert.CreateInvalidCharException( (char)ch, '\0' );
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (1)
341throw XmlConvert.CreateInvalidCharException( ch, '\0' );
System\Xml\Core\XmlWellFormedWriter.cs (2)
358XmlConvert.VerifyQName(name, ExceptionType.XmlException); 875throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar);
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
55XmlConvert.VerifyQName(name, ExceptionType.XmlException); 726throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar);
System\Xml\Core\XmlWellFormedWriterHelpers.cs (4)
343singleStringValue = XmlConvert.TrimString(singleStringValue); 349string valAfter = XmlConvert.TrimString(valBefore); 367item.data = XmlConvert.TrimStringStart((string)item.data); 401item.data = XmlConvert.TrimStringEnd((string)item.data);
System\Xml\Core\XmlWriter.cs (9)
232WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 238WriteString(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException)); 282WriteString(XmlConvert.ToString(value)); 287WriteString(XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind)); 305WriteString(XmlConvert.ToString(value)); 310WriteString(XmlConvert.ToString(value)); 315WriteString(XmlConvert.ToString(value)); 320WriteString(XmlConvert.ToString(value)); 325WriteString(XmlConvert.ToString(value));
System\Xml\Core\XmlWriterAsync.cs (2)
188return WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); 194return WriteStringAsync(XmlConvert.VerifyQName(name, ExceptionType.ArgumentException));
System\Xml\Core\XsdValidatingReader.cs (1)
173validator.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)
229validator.SourceUri = XmlConvert.ToUri(document.BaseURI);
System\Xml\Dom\DocumentXmlWriter.cs (5)
241XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 248XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 255XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 273XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); 282XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException);
System\Xml\Dom\XmlNode.cs (4)
1123switch (XmlConvert.TrimString(elem.GetAttribute("xml:space"))) { 1218result += ", Name=\"" + node.Name + "\", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(node.Value) + "\""; 1226result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(node.Value) + "\""; 1230result += ", Name=\"" + documentType.Name + "\", SYSTEM=\"" + documentType.SystemId + "\", PUBLIC=\"" + documentType.PublicId + "\", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(documentType.InternalSubset) + "\"";
System\Xml\Schema\DataTypeImplementation.cs (26)
1003string[] splitString = XmlConvert.SplitString(s); 1015string[] splitString = XmlConvert.SplitString(s); 1377exception = XmlConvert.TryToBoolean(s, out boolValue); 1457exception = XmlConvert.TryToSingle(s, out singleValue); 1539exception = XmlConvert.TryToDouble(s, out doubleValue); 1628exception = XmlConvert.TryToDecimal(s, out decimalValue); 1716exception = XmlConvert.TryToTimeSpan(s, out timeSpanValue); 2227byteArrayValue = XmlConvert.FromBinHexString(s, false); 2414exception = XmlConvert.TryToUri(s, out uri); 2883exception = XmlConvert.TryToInteger(s, out decimalValue); 2992exception = XmlConvert.TryToInt64(s, out int64Value); 3045exception = XmlConvert.TryToInt32(s, out int32Value); 3099exception = XmlConvert.TryToInt16(s, out int16Value); 3152exception = XmlConvert.TryToSByte(s, out sbyteValue); 3234exception = XmlConvert.TryToUInt64(s, out uint64Value); 3287exception = XmlConvert.TryToUInt32(s, out uint32Value); 3340exception = XmlConvert.TryToUInt16(s, out uint16Value); 3392exception = XmlConvert.TryToByte(s, out byteValue); 3433value = XmlConvert.ToDouble(s); 3449value = XmlConvert.ToSingle(s); 3512return XmlConvert.ToChar(s); 3528exception = XmlConvert.TryToChar(s, out charValue); 3546decimal value = XmlConvert.ToDecimal(s); 3568exception = XmlConvert.TryToDecimal(s, out decimalValue); 3600return XmlConvert.ToGuid(s); 3616exception = XmlConvert.TryToGuid(s, out guid);
System\Xml\Schema\DtdParser.cs (2)
287throw XmlConvert.CreateInvalidNameArgumentException( docTypeName, "docTypeName" ); 291XmlConvert.VerifyName( docTypeName );
System\Xml\Schema\FacetChecker.cs (6)
1191exception = XmlConvert.TryToUri(s, out uri); 1196exception = XmlConvert.TryVerifyNormalizedString(s); 1200exception = XmlConvert.TryVerifyTOKEN(s); 1213exception = XmlConvert.TryVerifyNMTOKEN(s); 1217exception = XmlConvert.TryVerifyName(s); 1224exception = XmlConvert.TryVerifyNCName(s);
System\Xml\Schema\Inference\Infer.cs (16)
1454XmlConvert.ToSByte(s); 1471XmlConvert.ToByte(s); 1485XmlConvert.ToInt16(s); 1502XmlConvert.ToUInt16(s); 1516XmlConvert.ToInt32(s); 1533XmlConvert.ToUInt32(s); 1547XmlConvert.ToInt64(s); 1564XmlConvert.ToUInt64(s); 1578double dbValue = XmlConvert.ToDouble(s); 1588float flValue = XmlConvert.ToSingle(s); 1592if (string.Compare(XmlConvert.ToString(flValue), XmlConvert.ToString(dbValue), 1616XmlConvert.ToSingle(s); 1636XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind); 1650XmlConvert.ToTimeSpan(s); 2346XmlConvert.ToDateTime(s, XmlDateTimeSerializationMode.RoundtripKind);
System\Xml\Schema\NamespaceList.cs (2)
41string[] splitString = XmlConvert.SplitString(namespaces); 50XmlConvert.ToUri (splitString[i]); // can throw
System\Xml\Schema\Preprocessor.cs (3)
453XmlConvert.ToUri(uri); // can throw 1556XmlConvert.VerifyTOKEN(notation.Public); // can throw 1681xso.IdAttribute = NameTable.Add(XmlConvert.VerifyNCName(xso.IdAttribute));
System\Xml\Schema\SchemaCollectionpreProcessor.cs (7)
264XmlConvert.ToUri(tns); // can throw 274XmlConvert.VerifyTOKEN(schema.Version); // can throw 314XmlConvert.ToUri(loc); // can throw 348XmlConvert.ToUri(ns); //can throw 1237XmlConvert.ToUri(notation.Public); // can throw 1248XmlConvert.ToUri(notation.System); // can throw 1369xso.IdAttribute = NameTable.Add(XmlConvert.VerifyNCName(xso.IdAttribute));
System\Xml\Schema\XmlSchemaParticle.cs (4)
34return (flags & Occurs.Min) == 0 ? null : XmlConvert.ToString(minOccurs); 42minOccurs = XmlConvert.ToInteger(value); 58return (flags & Occurs.Max) == 0 ? null : (maxOccurs == decimal.MaxValue) ? "unbounded" : XmlConvert.ToString(maxOccurs); 70maxOccurs = XmlConvert.ToInteger(value);
System\Xml\Schema\XmlSchemaValidator.cs (2)
1398context.IsNill = XmlConvert.ToBoolean(xsiNil); 2281string[] nsList = XmlConvert.SplitString(namespaces);
System\Xml\Schema\XmlValueConverter.cs (106)
582return Convert.FromBase64String(XmlConvert.TrimString(value)); 652return XmlConvert.FromBinHexString(XmlConvert.TrimString(value), false); 811throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" })); 818throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int64" })); 825throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt64" })); 832throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Byte" })); 839throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int16" })); 846throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "SByte" })); 853throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt16" })); 860throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" })); 867throw new OverflowException(Res.GetString(Res.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt32" })); 921if (TypeCode == XmlTypeCode.Decimal) return XmlConvert.ToDecimal((string) value); 922return XmlConvert.ToInteger((string) value); 962if (TypeCode == XmlTypeCode.Decimal) return DecimalToInt32(XmlConvert.ToDecimal((string) value)); 963return XmlConvert.ToInt32((string) value); 996if (TypeCode == XmlTypeCode.Decimal) return DecimalToInt64(XmlConvert.ToDecimal((string) value)); 997return XmlConvert.ToInt64((string) value); 1026if (TypeCode == XmlTypeCode.Decimal) return XmlConvert.ToString((decimal) value); 1027return XmlConvert.ToString(decimal.Truncate((decimal) value)); 1030return XmlConvert.ToString((int) value); 1033return XmlConvert.ToString((long) value); 1046if (sourceType == Int32Type) return XmlConvert.ToString((int) value); 1047if (sourceType == Int64Type) return XmlConvert.ToString((long) value); 1080if (destinationType == StringType) return XmlConvert.ToString((int) value); 1094if (destinationType == StringType) return XmlConvert.ToString((long) value); 1231if (TypeCode == XmlTypeCode.Float) return ((double) XmlConvert.ToSingle((string) value)); 1232return XmlConvert.ToDouble((string) value); 1275if (TypeCode == XmlTypeCode.Float) return XmlConvert.ToSingle((string) value); 1276return ((float) XmlConvert.ToDouble((string) value)); 1297if (TypeCode == XmlTypeCode.Float) return XmlConvert.ToString(ToSingle((double) value)); 1298return XmlConvert.ToString((double) value); 1301if (TypeCode == XmlTypeCode.Float) return XmlConvert.ToString((float) value); 1302return XmlConvert.ToString((double) (float) value); 1667return XmlConvert.ToBoolean((string) value); 1675if (sourceType == StringType) return XmlConvert.ToBoolean((string) value); 1729return XmlConvert.ToString((bool) value); 1741if (sourceType == BooleanType) return XmlConvert.ToString((bool) value); 1758if (destinationType == StringType) return XmlConvert.ToString((bool) value); 1770if (destinationType == BooleanType) return XmlConvert.ToBoolean((string) value); 1879case XmlTypeCode.HexBinary: return XmlConvert.ToBinHexString((byte[]) value); 1931if (destinationType == UriType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string) value); 1990if (sourceType == StringType) if (TypeCode == XmlTypeCode.AnyUri) return XmlConvert.ToUri((string) value); 2187return XmlConvert.ToBoolean((string) value); 2194if (sourceType == StringType) return XmlConvert.ToBoolean((string) value); 2246return XmlConvert.ToDecimal((string) value); 2253if (sourceType == StringType) return XmlConvert.ToDecimal((string) value); 2266return XmlConvert.ToDouble((string) value); 2273if (sourceType == StringType) return XmlConvert.ToDouble((string) value); 2286return XmlConvert.ToInt32((string) value); 2293if (sourceType == StringType) return XmlConvert.ToInt32((string) value); 2306return XmlConvert.ToInt64((string) value); 2313if (sourceType == StringType) return XmlConvert.ToInt64((string) value); 2326return XmlConvert.ToSingle((string) value); 2333if (sourceType == StringType) return XmlConvert.ToSingle((string) value); 2344return XmlConvert.ToString((bool) value); 2353return XmlConvert.ToString((decimal) value); 2356return XmlConvert.ToString((double) value); 2359return XmlConvert.ToString((int) value); 2362return XmlConvert.ToString((long) value); 2365return XmlConvert.ToString((float) value); 2377if (sourceType == BooleanType) return XmlConvert.ToString((bool) value); 2378if (sourceType == ByteType) return XmlConvert.ToString((byte) value); 2382if (sourceType == DecimalType) return XmlConvert.ToString((decimal) value); 2383if (sourceType == DoubleType) return XmlConvert.ToString((double) value); 2384if (sourceType == Int16Type) return XmlConvert.ToString((short) value); 2385if (sourceType == Int32Type) return XmlConvert.ToString((int) value); 2386if (sourceType == Int64Type) return XmlConvert.ToString((long) value); 2387if (sourceType == SByteType) return XmlConvert.ToString((sbyte) value); 2388if (sourceType == SingleType) return XmlConvert.ToString((float) value); 2391if (sourceType == UInt16Type) return XmlConvert.ToString((ushort) value); 2392if (sourceType == UInt32Type) return XmlConvert.ToString((uint) value); 2393if (sourceType == UInt64Type) return XmlConvert.ToString((ulong) value); 2410if (destinationType == StringType) return XmlConvert.ToString((bool) value); 2437if (destinationType == StringType) return XmlConvert.ToString((decimal) value); 2446if (destinationType == StringType) return XmlConvert.ToString((double) value); 2455if (destinationType == StringType) return XmlConvert.ToString((int) value); 2464if (destinationType == StringType) return XmlConvert.ToString((long) value); 2473if (destinationType == StringType) return XmlConvert.ToString((float) value); 2483if (destinationType == BooleanType) return XmlConvert.ToBoolean((string) value); 2484if (destinationType == ByteType) return Int32ToByte(XmlConvert.ToInt32((string) value)); 2488if (destinationType == DecimalType) return XmlConvert.ToDecimal((string) value); 2489if (destinationType == DoubleType) return XmlConvert.ToDouble((string) value); 2490if (destinationType == Int16Type) return Int32ToInt16(XmlConvert.ToInt32((string) value)); 2491if (destinationType == Int32Type) return XmlConvert.ToInt32((string) value); 2492if (destinationType == Int64Type) return XmlConvert.ToInt64((string) value); 2493if (destinationType == SByteType) return Int32ToSByte(XmlConvert.ToInt32((string) value)); 2494if (destinationType == SingleType) return XmlConvert.ToSingle((string) value); 2496if (destinationType == UInt16Type) return Int32ToUInt16(XmlConvert.ToInt32((string) value)); 2497if (destinationType == UInt32Type) return Int64ToUInt32(XmlConvert.ToInt64((string) value)); 2498if (destinationType == UInt64Type) return DecimalToUInt64(XmlConvert.ToDecimal((string) value)); 2499if (destinationType == UriType) return XmlConvert.ToUri((string) value); 2516if (sourceType == StringType) return XmlConvert.ToBoolean((string) value); 2519if (sourceType == StringType) return Int32ToByte(XmlConvert.ToInt32((string) value)); 2531if (sourceType == StringType) return XmlConvert.ToDecimal((string) value); 2534if (sourceType == StringType) return XmlConvert.ToDouble((string) value); 2537if (sourceType == StringType) return Int32ToInt16(XmlConvert.ToInt32((string) value)); 2540if (sourceType == StringType) return XmlConvert.ToInt32((string) value); 2543if (sourceType == StringType) return XmlConvert.ToInt64((string) value); 2546if (sourceType == StringType) return Int32ToSByte(XmlConvert.ToInt32((string) value)); 2549if (sourceType == StringType) return XmlConvert.ToSingle((string) value); 2555if (sourceType == StringType) return Int32ToUInt16(XmlConvert.ToInt32((string) value)); 2558if (sourceType == StringType) return Int64ToUInt32(XmlConvert.ToInt64((string) value)); 2561if (sourceType == StringType) return DecimalToUInt64(XmlConvert.ToDecimal((string) value)); 2564if (sourceType == StringType) return XmlConvert.ToUri((string) value); 3270return new List<string>(XmlConvert.SplitString(value));
System\Xml\Schema\XsdBuilder.cs (2)
2260return XmlConvert.ToBoolean(value); 2293string[] stringValues = XmlConvert.SplitString(value);
System\Xml\Schema\XsdDuration.cs (6)
375sb.Append(XmlConvert.ToString(this.years)); 380sb.Append(XmlConvert.ToString(this.months)); 387sb.Append(XmlConvert.ToString(this.days)); 394sb.Append(XmlConvert.ToString(this.hours)); 399sb.Append(XmlConvert.ToString(this.minutes)); 405sb.Append(XmlConvert.ToString(this.seconds));
System\Xml\Schema\XsdValidator.cs (1)
357context.IsNill = XmlConvert.ToBoolean(xsiNil);
System\Xml\Serialization\Mappings.cs (6)
93return XmlConvert.EncodeLocalName(name); 100return XmlConvert.EncodeLocalName(name); 104return new XmlQualifiedName(XmlConvert.EncodeLocalName(name.Substring(colon + 1)), XmlConvert.EncodeLocalName(name.Substring(0, colon))).ToString(); 109return XmlConvert.DecodeName(name); 292get { return IsAnonymousType ? XmlConvert.EncodeLocalName(typeDesc.Name) : typeName; }
System\Xml\Serialization\PrimitiveXmlSerializers.cs (28)
27WriteElementStringRaw(@"int", @"", System.Xml.XmlConvert.ToString((System.Int32)((System.Int32)o))); 36WriteElementStringRaw(@"boolean", @"", System.Xml.XmlConvert.ToString((System.Boolean)((System.Boolean)o))); 45WriteElementStringRaw(@"short", @"", System.Xml.XmlConvert.ToString((System.Int16)((System.Int16)o))); 54WriteElementStringRaw(@"long", @"", System.Xml.XmlConvert.ToString((System.Int64)((System.Int64)o))); 63WriteElementStringRaw(@"float", @"", System.Xml.XmlConvert.ToString((System.Single)((System.Single)o))); 72WriteElementStringRaw(@"double", @"", System.Xml.XmlConvert.ToString((System.Double)((System.Double)o))); 81WriteElementStringRaw(@"decimal", @"", System.Xml.XmlConvert.ToString((System.Decimal)((System.Decimal)o))); 99WriteElementStringRaw(@"unsignedByte", @"", System.Xml.XmlConvert.ToString((System.Byte)((System.Byte)o))); 108WriteElementStringRaw(@"byte", @"", System.Xml.XmlConvert.ToString((System.SByte)((System.SByte)o))); 117WriteElementStringRaw(@"unsignedShort", @"", System.Xml.XmlConvert.ToString((System.UInt16)((System.UInt16)o))); 126WriteElementStringRaw(@"unsignedInt", @"", System.Xml.XmlConvert.ToString((System.UInt32)((System.UInt32)o))); 135WriteElementStringRaw(@"unsignedLong", @"", System.Xml.XmlConvert.ToString((System.UInt64)((System.UInt64)o))); 154WriteElementStringRaw(@"guid", @"", System.Xml.XmlConvert.ToString((System.Guid)((System.Guid)o))); 166WriteElementStringRaw(@"TimeSpan", @"", System.Xml.XmlConvert.ToString(timeSpan)); 222o = System.Xml.XmlConvert.ToInt32(Reader.ReadElementString()); 241o = System.Xml.XmlConvert.ToBoolean(Reader.ReadElementString()); 260o = System.Xml.XmlConvert.ToInt16(Reader.ReadElementString()); 279o = System.Xml.XmlConvert.ToInt64(Reader.ReadElementString()); 298o = System.Xml.XmlConvert.ToSingle(Reader.ReadElementString()); 317o = System.Xml.XmlConvert.ToDouble(Reader.ReadElementString()); 336o = System.Xml.XmlConvert.ToDecimal(Reader.ReadElementString()); 374o = System.Xml.XmlConvert.ToByte(Reader.ReadElementString()); 393o = System.Xml.XmlConvert.ToSByte(Reader.ReadElementString()); 412o = System.Xml.XmlConvert.ToUInt16(Reader.ReadElementString()); 431o = System.Xml.XmlConvert.ToUInt32(Reader.ReadElementString()); 450o = System.Xml.XmlConvert.ToUInt64(Reader.ReadElementString()); 491o = System.Xml.XmlConvert.ToGuid(Reader.ReadElementString()); 521o = System.Xml.XmlConvert.ToTimeSpan(Reader.ReadElementString());
System\Xml\Serialization\SchemaObjectWriter.cs (18)
595WriteAttribute(@"fixed", @"", XmlConvert.ToString(o.IsFixed)); 672WriteAttribute(@"abstract", @"", XmlConvert.ToString((System.Boolean)((System.Boolean)o.@IsAbstract))); 676WriteAttribute(@"mixed", @"", XmlConvert.ToString((System.Boolean)((System.Boolean)o.@IsMixed))); 755WriteAttribute(@"mixed", @"", XmlConvert.ToString((System.Boolean)((System.Boolean)o.@IsMixed))); 799WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 800WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 812WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 813WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 815WriteAttribute(@"abstract", @"", XmlConvert.ToString((System.Boolean)((System.Boolean)o.@IsAbstract))); 833WriteAttribute(@"nillable", @"", XmlConvert.ToString(o.IsNillable)); 950WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 951WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 963WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 964WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 978WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 979WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1011WriteAttribute("minOccurs", "", XmlConvert.ToString(o.MinOccurs)); 1012WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
System\Xml\Serialization\SoapReflectionImporter.cs (4)
151element.Name = elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName); 303typeName = XmlConvert.EncodeLocalName(typeName); 527typeName = XmlConvert.EncodeLocalName(typeName); 663element.Name = XmlConvert.EncodeLocalName(a.SoapElement == null || a.SoapElement.ElementName.Length == 0 ? accessorName : a.SoapElement.ElementName);
System\Xml\Serialization\XmlCodeExporter.cs (1)
355Type formatter = typeof(XmlConvert);
System\Xml\Serialization\Xmlcustomformatter.cs (18)
74return XmlConvert.ToString(value, "yyyy-MM-dd"); 80return XmlConvert.ToString(DateTime.MinValue + value.TimeOfDay, "HH:mm:ss.fffffffZ"); 84return XmlConvert.ToString(DateTime.MinValue + value.TimeOfDay, "HH:mm:ss.fffffffzzzzzz"); 90return XmlConvert.ToString(value, "yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz"); 94return XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind); 99return XmlConvert.ToString((UInt16)value); 103return XmlConvert.EncodeName(name); 107return XmlConvert.EncodeLocalName(ncName); 111return XmlConvert.EncodeNmToken(nmToken); 142return XmlConvert.ToBinHexString(value); 329return XmlConvert.ToDateTime(value, XmlDateTimeSerializationMode.RoundtripKind); 334return XmlConvert.ToDateTime(value, formats); 353return (char)XmlConvert.ToUInt16(value); 357return XmlConvert.DecodeName(CollapseWhitespace(value)); 361return XmlConvert.DecodeName(CollapseWhitespace(value)); 365return XmlConvert.DecodeName(CollapseWhitespace(value)); 369return XmlConvert.DecodeName(CollapseWhitespace(value)); 382return XmlConvert.FromBinHexString(value);
System\Xml\Serialization\XmlReflectionImporter.cs (15)
197element.Name = elementName == null || elementName.Length == 0 ? elementName : XmlConvert.EncodeLocalName(elementName); 250element.Name = XmlConvert.EncodeLocalName(root.ElementName); 652typeName = XmlConvert.EncodeLocalName(typeName); 899name = XmlConvert.EncodeLocalName(name); 1042typeName = XmlConvert.EncodeLocalName(typeName); 1308arrayItemElement.Name = xmlArrayItem.ElementName.Length == 0 ? arrayItemElement.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlArrayItem.ElementName); 1429element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1433element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1461string anyName = xmlAnyElement.Name.Length == 0 ? xmlAnyElement.Name : XmlConvert.EncodeLocalName(xmlAnyElement.Name); 1511arrayElement.Name = XmlConvert.EncodeLocalName(a.XmlArray.ElementName.Length == 0 ? accessorName : a.XmlArray.ElementName); 1582element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1641element.Name = XmlConvert.EncodeLocalName(xmlElement.ElementName.Length == 0 ? accessorName : xmlElement.ElementName); 1644element.Name = xmlElement.ElementName.Length == 0 ? element.Mapping.DefaultElementName : XmlConvert.EncodeLocalName(xmlElement.ElementName); 1674string anyName = xmlAnyElement.Name.Length == 0 ? xmlAnyElement.Name : XmlConvert.EncodeLocalName(xmlAnyElement.Name); 1967element.Name = XmlConvert.EncodeLocalName(typeName);
System\Xml\Serialization\XmlSchemaExporter.cs (1)
827Type formatter = typeof(XmlConvert);
System\Xml\Serialization\XmlSerializationReader.cs (30)
556value = XmlConvert.ToInt32(ReadStringValue()); 558value = XmlConvert.ToBoolean(ReadStringValue()); 560value = XmlConvert.ToInt16(ReadStringValue()); 562value = XmlConvert.ToInt64(ReadStringValue()); 564value = XmlConvert.ToSingle(ReadStringValue()); 566value = XmlConvert.ToDouble(ReadStringValue()); 568value = XmlConvert.ToDecimal(ReadStringValue()); 578value = XmlConvert.ToByte(ReadStringValue()); 580value = XmlConvert.ToSByte(ReadStringValue()); 582value = XmlConvert.ToUInt16(ReadStringValue()); 584value = XmlConvert.ToUInt32(ReadStringValue()); 586value = XmlConvert.ToUInt64(ReadStringValue()); 627value = XmlConvert.ToInt32(ReadStringValue()); 629value = XmlConvert.ToBoolean(ReadStringValue()); 631value = XmlConvert.ToInt16(ReadStringValue()); 633value = XmlConvert.ToInt64(ReadStringValue()); 635value = XmlConvert.ToSingle(ReadStringValue()); 637value = XmlConvert.ToDouble(ReadStringValue()); 639value = XmlConvert.ToDecimal(ReadStringValue()); 649value = XmlConvert.ToByte(ReadStringValue()); 651value = XmlConvert.ToSByte(ReadStringValue()); 653value = XmlConvert.ToUInt16(ReadStringValue()); 655value = XmlConvert.ToUInt32(ReadStringValue()); 657value = XmlConvert.ToUInt64(ReadStringValue()); 667value = XmlConvert.ToTimeSpan(ReadStringValue()); 827if (isNull == null || !XmlConvert.ToBoolean(isNull)) return false; 1119prefix = XmlConvert.DecodeName(prefix); 1120localName = XmlConvert.DecodeName(localName); 2681Writer.Write(typeof(XmlConvert).FullName); 4582Writer.Write(typeof(XmlConvert).FullName);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
887ToXXX = typeof(XmlConvert).GetMethod(
System\Xml\Serialization\XmlSerializationWriter.cs (16)
235value = XmlConvert.ToString((int)o); 239value = XmlConvert.ToString((bool)o); 243value = XmlConvert.ToString((short)o); 247value = XmlConvert.ToString((long)o); 251value = XmlConvert.ToString((float)o); 255value = XmlConvert.ToString((double)o); 259value = XmlConvert.ToString((decimal)o); 272value = XmlConvert.ToString((byte)o); 276value = XmlConvert.ToString((sbyte)o); 280value = XmlConvert.ToString((UInt16)o); 284value = XmlConvert.ToString((UInt32)o); 288value = XmlConvert.ToString((UInt64)o); 310value = XmlConvert.ToString((Guid)o); 315value = XmlConvert.ToString((TimeSpan)o); 388return GetQualifiedName(EscapeName ? XmlConvert.EncodeLocalName(xmlQualifiedName.Name) : xmlQualifiedName.Name, xmlQualifiedName.Namespace); 1457Writer.Write(typeof(XmlConvert).FullName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
143MethodInfo XmlConvert_ToString = typeof(XmlConvert).GetMethod(
System\Xml\Serialization\XmlSerializerNamespaces.cs (2)
58XmlConvert.VerifyNCName(prefix); 61XmlConvert.ToUri(ns);
System\Xml\XmlQualifiedName.cs (2)
233XmlConvert.VerifyNCName(name); 235XmlConvert.ToUri(ns);
System\Xml\XPath\Internal\CompiledXPathExpr.cs (2)
176double r1 = XmlConvert.ToXPathDouble(x); 177double r2 = XmlConvert.ToXPathDouble(y);
System\Xml\XPath\Internal\IdQuery.cs (1)
49string[] ids = XmlConvert.SplitString(val);
System\Xml\XPath\Internal\NumberFunctions.cs (4)
41return XmlConvert.ToXPathDouble(arg); 57return XmlConvert.ToXPathDouble(nodeIterator.Current.Value); 98double n = XmlConvert.ToXPathDouble(arg.Evaluate(nodeIterator)); 99return XmlConvert.XPathRound(n);
System\Xml\XPath\Internal\NumericExpr.cs (2)
51XmlConvert.ToXPathDouble(opnd1.Evaluate(nodeIterator)), 52XmlConvert.ToXPathDouble(opnd2.Evaluate(nodeIterator))
System\Xml\XPath\Internal\StringFunctions.cs (5)
143double num = XmlConvert.XPathRound(XmlConvert.ToXPathDouble(argList[1].Evaluate(nodeIterator))) - 1 ; 149double num1 = XmlConvert.XPathRound(XmlConvert.ToXPathDouble(argList[2].Evaluate(nodeIterator))); 187str1 = XmlConvert.TrimString(str1);
System\Xml\XPath\Internal\XPathScanner.cs (2)
255 return XmlConvert.ToXPathDouble(this.xpathExpr.Substring(start, len)); 266 return XmlConvert.ToXPathDouble(this.xpathExpr.Substring(start, len));
System\Xml\XPath\XPathNavigator.cs (2)
1898result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(nav.Value) + '"'; 1904result += ", Value=\"" + XmlConvert.EscapeValueForDebuggerDisplay(nav.Value) + '"';
System\Xml\XPath\XPathNavigatorReader.cs (1)
236switch (XmlConvert.TrimString(tempNav.Value)) {
System.Xml.Linq (56)
System\Xml\Linq\XLinq.cs (56)
46this.localName = XmlConvert.VerifyNCName(localName); 2938return XmlConvert.ToString(value, XmlDateTimeSerializationMode.RoundtripKind); 2998s = XmlConvert.ToString((double)value); 3001s = XmlConvert.ToString((float)value); 3004s = XmlConvert.ToString((decimal)value); 3007s = XmlConvert.ToString((bool)value); 3013s = XmlConvert.ToString((DateTimeOffset)value); 3016s = XmlConvert.ToString((TimeSpan)value); 4468return XmlConvert.ToBoolean(element.Value.ToLower(CultureInfo.InvariantCulture)); 4487return XmlConvert.ToBoolean(element.Value.ToLower(CultureInfo.InvariantCulture)); 4509return XmlConvert.ToInt32(element.Value); 4528return XmlConvert.ToInt32(element.Value); 4550return XmlConvert.ToUInt32(element.Value); 4569return XmlConvert.ToUInt32(element.Value); 4591return XmlConvert.ToInt64(element.Value); 4610return XmlConvert.ToInt64(element.Value); 4632return XmlConvert.ToUInt64(element.Value); 4651return XmlConvert.ToUInt64(element.Value); 4673return XmlConvert.ToSingle(element.Value); 4692return XmlConvert.ToSingle(element.Value); 4714return XmlConvert.ToDouble(element.Value); 4733return XmlConvert.ToDouble(element.Value); 4755return XmlConvert.ToDecimal(element.Value); 4774return XmlConvert.ToDecimal(element.Value); 4837return XmlConvert.ToDateTimeOffset(element.Value); 4856return XmlConvert.ToDateTimeOffset(element.Value); 4878return XmlConvert.ToTimeSpan(element.Value); 4897return XmlConvert.ToTimeSpan(element.Value); 4919return XmlConvert.ToGuid(element.Value); 4938return XmlConvert.ToGuid(element.Value); 6245XmlConvert.VerifyNCName(name); 6380this.name = XmlConvert.VerifyName(name); 6442value = XmlConvert.VerifyName(value); 6747return XmlConvert.ToBoolean(attribute.value.ToLower(CultureInfo.InvariantCulture)); 6762return XmlConvert.ToBoolean(attribute.value.ToLower(CultureInfo.InvariantCulture)); 6780return XmlConvert.ToInt32(attribute.value); 6795return XmlConvert.ToInt32(attribute.value); 6813return XmlConvert.ToUInt32(attribute.value); 6828return XmlConvert.ToUInt32(attribute.value); 6846return XmlConvert.ToInt64(attribute.value); 6861return XmlConvert.ToInt64(attribute.value); 6879return XmlConvert.ToUInt64(attribute.value); 6894return XmlConvert.ToUInt64(attribute.value); 6912return XmlConvert.ToSingle(attribute.value); 6927return XmlConvert.ToSingle(attribute.value); 6945return XmlConvert.ToDouble(attribute.value); 6960return XmlConvert.ToDouble(attribute.value); 6978return XmlConvert.ToDecimal(attribute.value); 6993return XmlConvert.ToDecimal(attribute.value); 7044return XmlConvert.ToDateTimeOffset(attribute.value); 7059return XmlConvert.ToDateTimeOffset(attribute.value); 7077return XmlConvert.ToTimeSpan(attribute.value); 7092return XmlConvert.ToTimeSpan(attribute.value); 7110return XmlConvert.ToGuid(attribute.value); 7125return XmlConvert.ToGuid(attribute.value); 8017WriteString(XmlConvert.ToString(value));
WindowsBase (6)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (1)
57XmlConvert.VerifyNCName(idValue);
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
214XmlConvert.VerifyNCName(id);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (2)
746dateTime = XmlConvert.ToDateTime(data, _dateTimeFormats); 897_xmlWriter.WriteString(XmlConvert.ToString(((Nullable<DateTime>)entry.Value).Value.ToUniversalTime(), "yyyy-MM-ddTHH:mm:ss.fffffffZ"));
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
722System.Xml.XmlConvert.VerifyNCName(_signedXml.Signature.Id);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1031System.Xml.XmlConvert.VerifyNCName(signatureId);