1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676
|
<Type Name="XmlConvert" FullName="System.Xml.XmlConvert" FullNameSP="System_Xml_XmlConvert" Maintainer="ecma">
<TypeSignature Language="ILASM" Value=".class public XmlConvert extends System.Object" />
<TypeSignature Language="C#" Value="public class XmlConvert" />
<MemberOfLibrary>XML</MemberOfLibrary>
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
<Docs>
<summary>
<para>Encodes and decodes XML names and provides methods for converting
between common language infrastructure (CLI) types and XML Schema Definition
language (XSD) types. When converting data types, the values returned are locale independent.</para>
</summary>
<remarks>
<para>Element and attribute names or ID values are limited to a
range of XML characters according to the Extensible Markup Language (XML) 1.0
(Second Edition) recommendation, located at
www.w3.org/TR/2000/REC-xml-20001006.html. When names contain invalid characters, they need to be translated into valid XML
names.</para>
<para> Many languages
and applications allow Unicode characters in their names, which are not valid in XML names.
For example, if 'Order Detail' were a column heading in a database, the database
allows the space between the words Order and Detail. However, in XML, the space
between Order and Detail is considered an invalid XML character. Thus, the
space, the invalid character, needs to be converted into an escaped hexadecimal
encoding and can be decoded later.</para>
<para>
The <see cref="M:System.Xml.XmlConvert.EncodeName(System.String)" /> and <see cref="M:System.Xml.XmlConvert.DecodeName(System.String)" /> methods are
used to translate invalid
XML names into valid XML names and vice versa.</para>
<para>
<see cref="T:System.Xml.XmlConvert" />
provides methods that enable the conversion of a <see cref="T:System.String" />
to a
CLI data type and vice-versa. Locale settings
are not taken into account during data conversion.</para>
<para>
<see cref="T:System.Xml.XmlConvert" /> also provides
methods that convert between XML Schema Definition (XSD) data types (see http://www.w3.org/TR/xmlschema-2/#built-in-datatypes) and their
corresponding common language infrastructure (CLI) data
types. The following table shows the XSD
data types and their corresponding CLI data types.</para>
<list type="table">
<listheader>
<term>XSD
data type</term>
<description>CLI
data type</description>
</listheader>
<item>
<term> hexBinary</term>
<description>A
<see cref="T:System.Byte" qualify="true" /> array</description>
</item>
<item>
<term> base64Binary</term>
<description>A
<see cref="T:System.Byte" qualify="true" />
array</description>
</item>
<item>
<term> Boolean</term>
<description>
<see cref="T:System.Boolean" qualify="true" />
</description>
</item>
<item>
<term> Byte</term>
<description>
<see cref="T:System.SByte" qualify="true" />
</description>
</item>
<item>
<term> normalizedString</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> Date</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> duration</term>
<description>
<see cref="T:System.TimeSpan" qualify="true" />
</description>
</item>
<item>
<term> dateTime</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> decimal</term>
<description>
<see cref="T:System.Decimal" qualify="true" />
</description>
</item>
<item>
<term> Double</term>
<description>
<see cref="T:System.Double" qualify="true" />
</description>
</item>
<item>
<term> ENTITIES</term>
<description>A <see cref="T:System.String" qualify="true" /> array</description>
</item>
<item>
<term> ENTITY</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> Float</term>
<description>
<see cref="T:System.Single" qualify="true" />
</description>
</item>
<item>
<term> gMonthDay</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> gDay</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> gYear</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> gYearMonth</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> ID</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> IDREF</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> IDREFS</term>
<description>A
<see cref="T:System.String" qualify="true" /> array</description>
</item>
<item>
<term> int</term>
<description>
<see cref="T:System.Int32" qualify="true" />
</description>
</item>
<item>
<term> integer</term>
<description>
<see cref="T:System.Decimal" qualify="true" />
</description>
</item>
<item>
<term> language</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> long</term>
<description>
<see cref="T:System.Int64" qualify="true" />
</description>
</item>
<item>
<term> month</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> Name</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> NCName</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> negativeInteger</term>
<description>
<see cref="T:System.Decimal" qualify="true" />
</description>
</item>
<item>
<term> NMTOKEN</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> NMTOKENS</term>
<description>A
<see cref="T:System.String" qualify="true" /> array</description>
</item>
<item>
<term> nonNegativeInteger</term>
<description>
<see cref="T:System.Decimal" qualify="true" />
</description>
</item>
<item>
<term> nonPositiveInteger</term>
<description>
<see cref="T:System.Decimal" qualify="true" />
</description>
</item>
<item>
<term> NOTATION</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> positiveInteger</term>
<description>
<see cref="T:System.Decimal" qualify="true" />
</description>
</item>
<item>
<term> short</term>
<description>
<see cref="T:System.Int16" qualify="true" />
</description>
</item>
<item>
<term> string</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> time</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> timePeriod</term>
<description>
<see cref="T:System.DateTime" qualify="true" />
</description>
</item>
<item>
<term> token</term>
<description>
<see cref="T:System.String" qualify="true" />
</description>
</item>
<item>
<term> unsignedByte</term>
<description>
<see cref="T:System.Byte" qualify="true" />
</description>
</item>
<item>
<term> unsignedInt</term>
<description>
<see cref="T:System.UInt32" qualify="true" />
</description>
</item>
<item>
<term> unsignedLong</term>
<description>
<see cref="T:System.UInt64" qualify="true" />
</description>
</item>
<item>
<term> unsignedShort</term>
<description>
<see cref="T:System.UInt16" qualify="true" />
</description>
</item>
<item>
<term> anyURI</term>
<description>
<see cref="T:System.Uri" qualify="true" />
</description>
</item>
</list>
</remarks>
</Docs>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="family specialname instance void .ctor()" />
<MemberSignature Language="C#" Value="public XmlConvert ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>Constructs a new instance of the <see cref="T:System.Xml.XmlConvert" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="EncodeName">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string EncodeName(string name)" />
<MemberSignature Language="C#" Value="public static string EncodeName (string name);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para> Converts a
name to a valid XML name.</para>
</summary>
<param name="name">A <see cref="T:System.String" /> specifying the name to be encoded.</param>
<returns>
<para>A <see cref="T:System.String" /> containing the XML name. If <paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />, <paramref name="name" /> is returned.</para>
</returns>
<remarks>
<para>This method translates invalid characters, such as spaces or half-width
Katakana, that need to be mapped to XML names without the support or presence of
schemas. The invalid characters are translated into escaped numeric entity
encodings.</para>
<para>The escape character is '_'. Any XML name character that does not conform to
the W3C Extensible Markup Language (XML) 1.0 specification is escaped as
<c>_xHHHH_</c>. The <c>HHHH</c> string stands for the four-digit hexadecimal UCS-2 code for the
character in most significant bit first order. For example, the name "Order
Details" is encoded as "Order<c>_x0020_</c>Details".</para>
<para> The underscore character does not need to be escaped
unless it is followed by a character sequence that together with the underscore can be misinterpreted as an escape sequence
when decoding the name. No short forms are encoded. For example, the
forms "_x20_" and "__" are not encoded.</para>
<para> This method guarantees the name is valid according to the XML specification.
It allows colons in any position, which means the name may still be invalid according
to the W3C Namespace Specification (www.w3.org/TR/REC-xml-names). To guarantee it is a valid namespace qualified
name use the <see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" />
method for the prefix and local name
parts and join the result with a colon.</para>
</remarks>
<example>
<para>See the <see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" /> method for an example comparing the <see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" />, <see cref="M:System.Xml.XmlConvert.EncodeName(System.String)" />, and <see cref="M:System.Xml.XmlConvert.EncodeNmToken(System.String)" /> methods.</para>
</example>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="EncodeNmToken">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string EncodeNmToken(string name)" />
<MemberSignature Language="C#" Value="public static string EncodeNmToken (string name);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para> Converts
a name to a valid XML name token.</para>
</summary>
<param name="name">A <see cref="T:System.String" /> specifying the name to be encoded.</param>
<returns>
<para>A <see cref="T:System.String" /> containing the XML name token. If <paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />, <paramref name="name" /> is
returned.</para>
</returns>
<example>
<para>See the <see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" /> method for an example comparing the
<see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" />, <see cref="M:System.Xml.XmlConvert.EncodeName(System.String)" />, and <see cref="M:System.Xml.XmlConvert.EncodeNmToken(System.String)" /> methods.</para>
</example>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="EncodeLocalName">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string EncodeLocalName(string name)" />
<MemberSignature Language="C#" Value="public static string EncodeLocalName (string name);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para> Converts a name to a valid XML local name.</para>
</summary>
<param name="name">A <see cref="T:System.String" /> specifying the name to be encoded.</param>
<returns>
<para>A <see cref="T:System.String" /> containing the XML local name. If <paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />, <paramref name="name" /> is returned.</para>
</returns>
<remarks>
<para>This method is similar to the <see cref="M:System.Xml.XmlConvert.EncodeName(System.String)" /> method except that it encodes the colon (:) character, which
guarantees that the name can be used as the local name part of a namespace
qualified name.</para>
</remarks>
<example>
<para>The following example compares the <see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" />, <see cref="M:System.Xml.XmlConvert.EncodeName(System.String)" />, and <see cref="M:System.Xml.XmlConvert.EncodeNmToken(System.String)" /> methods when the name to be encoded is "7:+".</para>
<code lang="C#">using System;
using System.Xml;
public class App {
public static void Main() {
Console.WriteLine( "LocalName {0}",
XmlConvert.EncodeLocalName("7:+") );
Console.WriteLine( "Name {0}",
XmlConvert.EncodeName("7:+") );
Console.WriteLine( "NmToken {0}",
XmlConvert.EncodeNmToken("7:+") );
}
}
</code>
<para>The output is</para>
<para>LocalName _x0037__x003A__x002B_</para>
<para>Name _x0037_:_x002B_</para>
<para>NmToken 7:_x002B_</para>
</example>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="DecodeName">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string DecodeName(string name)" />
<MemberSignature Language="C#" Value="public static string DecodeName (string name);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para> Decodes a name.</para>
</summary>
<param name="name">A <see cref="T:System.String" /> specifying the name to be decoded.</param>
<returns>
<para>A <see cref="T:System.String" /> containing the decoded name.</para>
</returns>
<remarks>
<para> Names are decoded using the following rules:</para>
<list type="bullet">
<item>
<term>
Names are decoded from left to right.</term>
</item>
<item>
<term>
Any sequence <c>_xHHHH_</c> (where <c>HHHH</c> stands for a valid, four
digit hexadecimal UCS-2 code) that has not been previously decoded is
transformed into the corresponding Unicode 2.1 (Unicode 3.0 if supported by
the application) character.</term>
</item>
<item>
<term>
No
short forms are recognized. They are passed on without translation. For
example, "_x70_" or "__" are not decoded.</term>
</item>
</list>
<block subset="none" type="note">
<para>This method does the reverse of the <see cref="M:System.Xml.XmlConvert.EncodeName(System.String)" />, <see cref="M:System.Xml.XmlConvert.EncodeLocalName(System.String)" />, and <see cref="M:System.Xml.XmlConvert.EncodeNmToken(System.String)" /> methods.</para>
</block>
</remarks>
<example>
<para>The following example demonstrates the valid and invalid
character formats for decoding.</para>
<code lang="C#">using System;
using System.Xml;
public class App {
public static void Main() {
Console.WriteLine( "{0} : {1} : {2}",
// _x0069_ decodes to i
XmlConvert.DecodeName("Order #1_x0069_"),
// missing beginning _
XmlConvert.DecodeName("Order #1x0069_"),
// short form
XmlConvert.DecodeName("Order #1_x69_") );
}
}
</code>
<para>The output is</para>
<para>Order #1i : Order #1x0069_ : Order #1_x69_</para>
</example>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VerifyName">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string VerifyName(string name)" />
<MemberSignature Language="C#" Value="public static string VerifyName (string name);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para> Verifies that the name is a valid name as defined in
the W3C Extended Markup Language recommendation (REC-xml-names-19990114).</para>
</summary>
<param name="name">A <see cref="T:System.String" /> specifying the name to verify.</param>
<returns>
<para>The <see cref="T:System.String" /><paramref name="name" />, if it is a valid XML name.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
<exception cref="T:System.Xml.XmlException">
<paramref name="name" /> is not a valid XML name.</exception>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="VerifyNCName">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string VerifyNCName(string name)" />
<MemberSignature Language="C#" Value="public static string VerifyNCName (string ncname);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ncname" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Verifies that the name is a valid qualified name as defined in the
W3C Extended Markup Language recommendation (REC-xml-names-19990114).</para>
</summary>
<param name="ncname">A <see cref="T:System.String" /> specifying the name to verify.</param>
<returns>
<para> The <see cref="T:System.String" /><paramref name="name" />, if it is a valid XML qualified name.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
<exception cref="T:System.Xml.XmlException">
<paramref name="name" /> is not a valid XML qualified name.</exception>
<remarks>
<para>If <paramref name="name" /> contains a colon, <see cref="T:System.Xml.XmlException" /> is
thrown.</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(bool value)" />
<MemberSignature Language="C#" Value="public static string ToString (bool value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Boolean" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.Boolean" /> to a <see cref="T:System.String" />.</para>
</summary>
<param name="value">The <see cref="T:System.Boolean" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> "true" or the <see cref="T:System.String" />
"false".</para>
</returns>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(valuetype System.Char value)" />
<MemberSignature Language="C#" Value="public static string ToString (char value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Char" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.Char" /> to a <see cref="T:System.String" />.</para>
</summary>
<param name="value">The <see cref="T:System.Char" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(decimal value)" />
<MemberSignature Language="C#" Value="public static string ToString (decimal value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.Decimal" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.Decimal" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>ExtendedNumerics</ExcludedLibrary>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(int8 value)" />
<MemberSignature Language="C#" Value="public static string ToString (sbyte value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.SByte" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.SByte" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.SByte" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToString(System.Boolean)" />(<see cref="T:System.Int16" />).</para>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(int16 value)" />
<MemberSignature Language="C#" Value="public static string ToString (short value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Int16" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.Int16" /> to a <see cref="T:System.String" />.</para>
</summary>
<param name="value">The <see cref="T:System.Int16" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(int32 value)" />
<MemberSignature Language="C#" Value="public static string ToString (int value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.Int32" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.Int32" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(int64 value)" />
<MemberSignature Language="C#" Value="public static string ToString (long value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Int64" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.Int64" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.Int64" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(unsigned int8 value)" />
<MemberSignature Language="C#" Value="public static string ToString (byte value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Byte" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.Byte" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.Byte" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(unsigned int16 value)" />
<MemberSignature Language="C#" Value="public static string ToString (ushort value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.UInt16" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.UInt16" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.UInt16" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant
alternative, use <see cref="M:System.Xml.XmlConvert.ToString(System.Boolean)" />(<see cref="T:System.Int32" />).</para>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(unsigned int32 value)" />
<MemberSignature Language="C#" Value="public static string ToString (uint value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.UInt32" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.UInt32" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.UInt32" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToString(System.Boolean)" />(<see cref="T:System.Int64" />).</para>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" /> ).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(unsigned int64 value)" />
<MemberSignature Language="C#" Value="public static string ToString (ulong value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.UInt64" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.UInt64" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.UInt64" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToString(System.Boolean)" />(<see cref="T:System.Decimal" />).</para>
<para>This method calls <paramref name="value" />.ToString(<see langword="null" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(float32 value)" />
<MemberSignature Language="C#" Value="public static string ToString (float value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Single" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.Single" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.Single" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>If <paramref name="value" /> is <see cref="F:System.Double.NegativeInfinity" />, this method returns "-INF".</para>
<para>If <paramref name="value" /> is <see cref="F:System.Double.PositiveInfinity" />, this method returns "INF".</para>
<para>Otherwise, this method calls <paramref name="value" />.ToString("R", <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>ExtendedNumerics</ExcludedLibrary>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(float64 value)" />
<MemberSignature Language="C#" Value="public static string ToString (double value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Double" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.Char" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.Char" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>If <paramref name="value" /> is <see cref="F:System.Double.NegativeInfinity" />, this method returns "-INF".</para>
<para>If <paramref name="value" /> is <see cref="F:System.Double.PositiveInfinity" />, this method returns "INF".</para>
<para>Otherwise, this method calls <paramref name="value" />.ToString("R", <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>ExtendedNumerics</ExcludedLibrary>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(valuetype System.TimeSpan value)" />
<MemberSignature Language="C#" Value="public static string ToString (TimeSpan value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.TimeSpan" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.TimeSpan" /> to a <see cref="T:System.String" />.</para>
</summary>
<param name="value">The <see cref="T:System.TimeSpan" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<example>
<para> The following example converts a <see cref="T:System.TimeSpan" /> to a <see cref="T:System.String" /> and writes the result
to the console.</para>
<code lang="C#">using System;
using System.Xml;
public class App {
public static void Main() {
TimeSpan timeSpan = new TimeSpan(3, 11, 59, 6, 128);
Console.WriteLine( "{0}",
XmlConvert.ToString(timeSpan) );
}
}
</code>
<para>The output is</para>
<para>P3DT11H59M6.128S</para>
</example>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(valuetype System.DateTime value)" />
<MemberSignature Language="C#" Value="public static string ToString (DateTime value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.DateTime" />
</Parameters>
<Docs>
<summary>
<para> Converts a <see cref="T:System.DateTime" /> to a <see cref="T:System.String" /> .</para>
</summary>
<param name="value">The <see cref="T:System.DateTime" /> to convert.</param>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" />.</para>
</returns>
<remarks>
<para>This method calls <see cref="M:System.Xml.XmlConvert.ToString(System.Boolean)" />(<paramref name="value" />,
"yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz").</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig static string ToString(valuetype System.DateTime value, string format)" />
<MemberSignature Language="C#" Value="public static string ToString (DateTime value, string format);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.DateTime" />
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.DateTime" /> to convert.</param>
<param name="format">A <see cref="T:System.String" /> specifying the format to apply to <paramref name="value" />. Valid formats include "yyyy-MM-ddTHH:mm:sszzzzzz" and its subsets. </param>
<summary>
<para> Converts a <see cref="T:System.DateTime" /> to a <see cref="T:System.String" /> .</para>
</summary>
<returns>
<para>The <see cref="T:System.String" /> representation of <paramref name="value" /> in the specified format..</para>
</returns>
<remarks>
<para> This method calls <paramref name="value" />.ToString(<paramref name="format" />, <see cref="P:System.Globalization.DateTimeFormatInfo.InvariantInfo" />).</para>
</remarks>
<param name="format">To be added.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToBoolean">
<MemberSignature Language="ILASM" Value=".method public hidebysig static bool ToBoolean(string s)" />
<MemberSignature Language="C#" Value="public static bool ToBoolean (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Boolean" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Boolean" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> does not represent a <see cref="T:System.Boolean" /> value.</exception>
<remarks>
<para>This method removes leading and trailing white space. After this trimming, valid strings are "1" and "true", which return
<see langword="true" />, and "0" and "false", which return <see langword="false" />.</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToChar">
<MemberSignature Language="ILASM" Value=".method public hidebysig static valuetype System.Char ToChar(string s)" />
<MemberSignature Language="C#" Value="public static char ToChar (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Char</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Char" /> equivalent.</para>
</summary>
<param name="s">The string containing a single character to convert.</param>
<returns>
<para>The <see cref="T:System.Char" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> contains more than one character.</exception>
<remarks>
<para>This method calls <see cref="M:System.Char.Parse(System.String)" />(<paramref name="s" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToDecimal">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal ToDecimal(string s)" />
<MemberSignature Language="C#" Value="public static decimal ToDecimal (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Decimal" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Decimal" />
equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Decimal.MinValue" /> or greater than <see cref="F:System.Decimal.MaxValue" />. </exception>
<remarks>
<para>This method calls <see cref="M:System.Decimal.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>ExtendedNumerics</ExcludedLibrary>
</Member>
<Member MemberName="ToSByte">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int8 ToSByte(string s)" />
<MemberSignature Language="C#" Value="public static sbyte ToSByte (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.SByte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.SByte" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.SByte" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.SByte.MinValue" /> or greater than <see cref="F:System.SByte.MaxValue" />. </exception>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToInt16(System.String)" />(<see cref="T:System.String" />).</para>
<para>This method calls <see cref="M:System.SByte.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToInt16">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int16 ToInt16(string s)" />
<MemberSignature Language="C#" Value="public static short ToInt16 (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Int16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Int16" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Int16" />
equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Int16.MinValue" /> or greater than <see cref="F:System.Int16.MaxValue" />. </exception>
<remarks>
<para>This method calls <see cref="M:System.Int16.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToInt32">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int32 ToInt32(string s)" />
<MemberSignature Language="C#" Value="public static int ToInt32 (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Int32" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Int32" />
equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Int32.MinValue" /> or greater than <see cref="F:System.Int32.MaxValue" />. </exception>
<remarks>
<para>This method calls <see cref="M:System.Int32.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToInt64">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int64 ToInt64(string s)" />
<MemberSignature Language="C#" Value="public static long ToInt64 (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Int64" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Int64" />
equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Int64.MinValue" /> or greater than <see cref="F:System.Int64.MaxValue" />. </exception>
<remarks>
<para>This method calls <see cref="M:System.Int64.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToByte">
<MemberSignature Language="ILASM" Value=".method public hidebysig static unsigned int8 ToByte(string s)" />
<MemberSignature Language="C#" Value="public static byte ToByte (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Byte" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Byte" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Byte.MinValue" /> or greater than <see cref="F:System.Byte.MaxValue" />. </exception>
<remarks>
<para>This method calls <see cref="M:System.Byte.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToUInt16">
<MemberSignature Language="ILASM" Value=".method public hidebysig static unsigned int16 ToUInt16(string s)" />
<MemberSignature Language="C#" Value="public static ushort ToUInt16 (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.UInt16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.UInt16" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.UInt16" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.UInt16.MinValue" /> or greater than <see cref="F:System.UInt16.MaxValue" />. </exception>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToInt32(System.String)" />(<see cref="T:System.String" />).</para>
<para>This method calls <see cref="M:System.UInt16.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToUInt32">
<MemberSignature Language="ILASM" Value=".method public hidebysig static unsigned int32 ToUInt32(string s)" />
<MemberSignature Language="C#" Value="public static uint ToUInt32 (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.UInt32" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.UInt32" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.UInt32.MinValue" /> or greater than <see cref="F:System.UInt32.MaxValue" />. </exception>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToInt64(System.String)" />(<see cref="T:System.String" />).</para>
<para>This method calls <see cref="M:System.UInt32.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToUInt64">
<MemberSignature Language="ILASM" Value=".method public hidebysig static unsigned int64 ToUInt64(string s)" />
<MemberSignature Language="C#" Value="public static ulong ToUInt64 (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.UInt64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.UInt64" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.UInt64" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.UInt64.MinValue" /> or greater than <see cref="F:System.UInt64.MaxValue" />. </exception>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use
<see cref="M:System.Xml.XmlConvert.ToDecimal(System.String)" />(<see cref="T:System.String" />).</para>
<para>This method calls <see cref="M:System.UInt64.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToSingle">
<MemberSignature Language="ILASM" Value=".method public hidebysig static float32 ToSingle(string s)" />
<MemberSignature Language="C#" Value="public static float ToSingle (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Single" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Single" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Single.MinValue" /> or greater than <see cref="F:System.Single.MaxValue" />. </exception>
<remarks>
<para>If <paramref name="s" /> is "-INF", this method returns <see cref="F:System.Single.NegativeInfinity" />.</para>
<para>If <paramref name="s" /> is "INF", this method returns <see cref="F:System.Single.PositiveInfinity" />.</para>
<para>Otherwise, this method calls <see cref="M:System.Single.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />|<see cref="F:System.Globalization.NumberStyles.AllowExponent" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>ExtendedNumerics</ExcludedLibrary>
</Member>
<Member MemberName="ToDouble">
<MemberSignature Language="ILASM" Value=".method public hidebysig static float64 ToDouble(string s)" />
<MemberSignature Language="C#" Value="public static double ToDouble (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.Double" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.Double" />
equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number less than <see cref="F:System.Double.MinValue" /> or greater than <see cref="F:System.Double.MaxValue" />. </exception>
<remarks>
<para>If <paramref name="s" /> is "-INF", this method returns <see cref="F:System.Double.NegativeInfinity" />.</para>
<para>If <paramref name="s" /> is "INF", this method returns <see cref="F:System.Double.PositiveInfinity" />.</para>
<para>Otherwise, this method calls <see cref="M:System.Double.Parse(System.String)" />(<paramref name="s" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />|<see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />|<see cref="F:System.Globalization.NumberStyles.AllowExponent" />|<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="P:System.Globalization.NumberFormatInfo.InvariantInfo" />).</para>
</remarks>
</Docs>
<Excluded>1</Excluded>
<ExcludedLibrary>ExtendedNumerics</ExcludedLibrary>
</Member>
<Member MemberName="ToTimeSpan">
<MemberSignature Language="ILASM" Value=".method public hidebysig static valuetype System.TimeSpan ToTimeSpan(string s)" />
<MemberSignature Language="C#" Value="public static TimeSpan ToTimeSpan (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.TimeSpan" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.TimeSpan" /> equivalent of
<paramref name="s" />.</para>
</returns>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct format to represent a <see cref="T:System.TimeSpan" /> value.</exception>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToDateTime">
<MemberSignature Language="ILASM" Value=".method public hidebysig static valuetype System.DateTime ToDateTime(string s)" />
<MemberSignature Language="C#" Value="public static DateTime ToDateTime (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.DateTime" /> equivalent.</para>
</summary>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<returns>
<para>The <see cref="T:System.DateTime" /> equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<para>
<paramref name="s" /> is <see cref="F:System.String.Empty" /> or is not in the correct format.</para>
</exception>
<remarks>
<para>
<paramref name="s" /> is required to be in one of the following string formats or
a <see cref="T:System.FormatException" /> is thrown.</para>
<para> "yyyy-MM-ddTHH:mm:ss"</para>
<para> "yyyy-MM-ddTHH:mm:ss.f"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ff"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fff"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffff"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffff"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffffff"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffffff"</para>
<para> "yyyy-MM-ddTHH:mm:ssZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffffZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffffZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffffffZ"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffffffZ"</para>
<para> "yyyy-MM-ddTHH:mm:sszzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fzzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffzzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffzzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffffzzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffffzzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.ffffffzzzzzz"</para>
<para> "yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz"</para>
<para> "HH:mm:ss"</para>
<para> "HH:mm:ss.f"</para>
<para> "HH:mm:ss.ff"</para>
<para> "HH:mm:ss.fff"</para>
<para> "HH:mm:ss.ffff"</para>
<para> "HH:mm:ss.fffff"</para>
<para> "HH:mm:ss.ffffff"</para>
<para> "HH:mm:ss.fffffff"</para>
<para> "HH:mm:ssZ"</para>
<para> "HH:mm:ss.fZ"</para>
<para> "HH:mm:ss.ffZ"</para>
<para> "HH:mm:ss.fffZ"</para>
<para> "HH:mm:ss.ffffZ"</para>
<para> "HH:mm:ss.fffffZ"</para>
<para> "HH:mm:ss.ffffffZ"</para>
<para> "HH:mm:ss.fffffffZ"</para>
<para> "HH:mm:sszzzzzz"</para>
<para> "HH:mm:ss.fzzzzzz"</para>
<para> "HH:mm:ss.ffzzzzzz"</para>
<para> "HH:mm:ss.fffzzzzzz"</para>
<para> "HH:mm:ss.ffffzzzzzz"</para>
<para> "HH:mm:ss.fffffzzzzzz"</para>
<para> "HH:mm:ss.ffffffzzzzzz"</para>
<para> "HH:mm:ss.fffffffzzzzzz"</para>
<para> "yyyy-MM-dd"</para>
<para> "yyyy-MM-ddZ"</para>
<para> "yyyy-MM-ddzzzzzz"</para>
<para> "yyyy-MM"</para>
<para> "yyyy-MMZ"</para>
<para> "yyyy-MMzzzzzz"</para>
<para> "yyyy"</para>
<para> "yyyyZ"</para>
<para> "yyyyzzzzzz"</para>
<para> "--MM-dd"</para>
<para> "--MM-ddZ"</para>
<para> "--MM-ddzzzzzz"</para>
<para> "---dd"</para>
<para> "---ddZ"</para>
<para> "---ddzzzzzz"</para>
<para> "--MM--"</para>
<para> "--MM--Z"</para>
<para> "--MM--zzzzzz"</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToDateTime">
<MemberSignature Language="ILASM" Value=".method public hidebysig static valuetype System.DateTime ToDateTime(string s, string format)" />
<MemberSignature Language="C#" Value="public static DateTime ToDateTime (string s, string format);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<param name="format">A <see cref="T:System.String" /> specifying the format used to validate <paramref name="s" />.</param>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.DateTime" /> equivalent.</para>
</summary>
<returns>
<para>The <see cref="T:System.DateTime" /> equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<para>
<paramref name="s" /> or <paramref name="format" /> is <see cref="F:System.String.Empty" /> .</para>
<para>-or-</para>
<para>
<paramref name="s" /> does not contain a date and time that corresponds to <paramref name="format" />.</para>
</exception>
<remarks>
<para>This method calls <see cref="M:System.DateTime.ParseExact(System.String,System.String,System.IFormatProvider)" />(<paramref name="s" />, <paramref name="format" />, <see cref="P:System.Globalization.DateTimeFormatInfo.InvariantInfo" />, <see cref="F:System.Globalization.DateTimeStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.DateTimeStyles.AllowTrailingWhite" />).</para>
<para>Valid formats include "yyyy-MM-ddTHH:mm:sszzzzzz" and its subsets.</para>
</remarks>
<param name="format">To be added.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToDateTime">
<MemberSignature Language="ILASM" Value=".method public hidebysig static valuetype System.DateTime ToDateTime(string s, class System.String[] formats)" />
<MemberSignature Language="C#" Value="public static DateTime ToDateTime (string s, string[] formats);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="formats" Type="System.String[]" />
</Parameters>
<Docs>
<param name="s">The <see cref="T:System.String" /> to convert.</param>
<param name="formats">A <see cref="T:System.String" /> array specifying formats used to validate <paramref name="s" />.</param>
<summary>
<para>Converts a <see cref="T:System.String" /> to a <see cref="T:System.DateTime" /> equivalent.</para>
</summary>
<returns>
<para>The <see cref="T:System.DateTime" /> equivalent of <paramref name="s" />.</para>
</returns>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<para>
<paramref name="s" /> or an element of <paramref name="formats" /> is <see cref="F:System.String.Empty" />.</para>
<para>-or-</para>
<para>
<paramref name="s" /> does not contain a date and time that corresponds to any of the elements of <paramref name="formats" />.</para>
</exception>
<remarks>
<para>This method calls <see cref="M:System.DateTime.ParseExact(System.String,System.String,System.IFormatProvider)" />(<paramref name="s" />, <paramref name="formats" />, <see cref="P:System.Globalization.DateTimeFormatInfo.InvariantInfo" />, <see cref="F:System.Globalization.DateTimeStyles.AllowLeadingWhite" />|<see cref="F:System.Globalization.DateTimeStyles.AllowTrailingWhite" />).</para>
<para>This method allows <paramref name="s" /> to
be validated against multiple formats.</para>
<para>Valid formats include "yyyy-MM-ddTHH:mm:sszzzzzz" and its subsets.</para>
</remarks>
<example>
<para>The following example converts a <see cref="T:System.String" /> to a <see cref="T:System.DateTime" /> and writes the
result to the console.</para>
<code lang="C#">using System;
using System.Xml;
public class App {
public static void Main() {
String someDate = "1966-09-19T03:45:11Z";
String[] datetimeFormats = new String[]
{"HH:mm:ss", "yyyy-MM-ddTHH:mm:ssZ"};
DateTime dateTime =
XmlConvert.ToDateTime(someDate, datetimeFormats);
Console.WriteLine( "{0}", dateTime.ToString() );
}
}
</code>
<para>The output is</para>
<para>9/18/1966 8:45:11 PM</para>
</example>
<param name="formats">To be added.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToGuid">
<MemberSignature Language="C#" Value="public static Guid ToGuid (string s);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Guid</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<summary>To be added.</summary>
<param name="s">To be added.</param>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public static string ToString (Guid value);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Guid" />
</Parameters>
<Docs>
<summary>To be added.</summary>
<param name="value">To be added.</param>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<TypeExcluded>0</TypeExcluded>
</Type>
|