<PackageReference Include="NETStandard.Library" Version="2.0.3" />

System.Xml.XmlConvert

public class XmlConvert
namespace System.Xml { public class XmlConvert { public XmlConvert(); public static string DecodeName(string name); public static string EncodeLocalName(string name); public static string EncodeName(string name); public static string EncodeNmToken(string name); public static bool IsNCNameChar(char ch); public static bool IsPublicIdChar(char ch); public static bool IsStartNCNameChar(char ch); public static bool IsWhitespaceChar(char ch); public static bool IsXmlChar(char ch); public static bool IsXmlSurrogatePair(char lowChar, char highChar); public static bool ToBoolean(string s); public static byte ToByte(string s); public static char ToChar(string s); public static DateTime ToDateTime(string s); public static DateTime ToDateTime(string s, string format); public static DateTime ToDateTime(string s, string[] formats); public static DateTime ToDateTime(string s, XmlDateTimeSerializationMode dateTimeOption); public static DateTimeOffset ToDateTimeOffset(string s); public static DateTimeOffset ToDateTimeOffset(string s, string format); public static DateTimeOffset ToDateTimeOffset(string s, string[] formats); public static decimal ToDecimal(string s); public static double ToDouble(string s); public static Guid ToGuid(string s); public static short ToInt16(string s); public static int ToInt32(string s); public static long ToInt64(string s); public static sbyte ToSByte(string s); public static float ToSingle(string s); public static string ToString(bool value); public static string ToString(byte value); public static string ToString(char value); public static string ToString(DateTime value); public static string ToString(DateTime value, string format); public static string ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption); public static string ToString(DateTimeOffset value); public static string ToString(DateTimeOffset value, string format); public static string ToString(decimal value); public static string ToString(double value); public static string ToString(Guid value); public static string ToString(short value); public static string ToString(int value); public static string ToString(long value); public static string ToString(sbyte value); public static string ToString(float value); public static string ToString(TimeSpan value); public static string ToString(ushort value); public static string ToString(uint value); public static string ToString(ulong value); public static TimeSpan ToTimeSpan(string s); public static ushort ToUInt16(string s); public static uint ToUInt32(string s); public static ulong ToUInt64(string s); public static string VerifyName(string name); public static string VerifyNCName(string name); public static string VerifyNMTOKEN(string name); public static string VerifyPublicId(string publicId); public static string VerifyTOKEN(string token); public static string VerifyWhitespace(string content); public static string VerifyXmlChars(string content); } }