Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Xml.XmlConvert Class Reference

Static Public Member Functions

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

Static Package Functions

static byte[] FromBinHexString (string s)
 
static byte[] FromBinHexString (string s, bool allowOddCount)
 
static string ToBinHexString (byte[] inArray)
 
static Exception TryVerifyName (string name)
 
static string VerifyQName (string name, ExceptionType exceptionType)
 
static string VerifyNCName (string name, ExceptionType exceptionType)
 
static Exception TryVerifyNCName (string name)
 
static Exception TryVerifyTOKEN (string token)
 
static string VerifyNMTOKEN (string name, ExceptionType exceptionType)
 
static Exception TryVerifyNMTOKEN (string name)
 
static Exception TryVerifyNormalizedString (string str)
 
static Exception TryToBoolean (string s, out bool result)
 
static Exception TryToChar (string s, out char result)
 
static Exception TryToDecimal (string s, out decimal result)
 
static decimal ToInteger (string s)
 
static Exception TryToInteger (string s, out decimal result)
 
static Exception TryToSByte (string s, out sbyte result)
 
static Exception TryToInt16 (string s, out short result)
 
static Exception TryToInt32 (string s, out int result)
 
static Exception TryToInt64 (string s, out long result)
 
static Exception TryToByte (string s, out byte result)
 
static Exception TryToUInt16 (string s, out ushort result)
 
static Exception TryToUInt32 (string s, out uint result)
 
static Exception TryToUInt64 (string s, out ulong result)
 
static Exception TryToSingle (string s, out float result)
 
static Exception TryToDouble (string s, out double result)
 
static double ToXPathDouble (object o)
 
static string ToXPathString (object value)
 
static double XPathRound (double value)
 
static Exception TryToTimeSpan (string s, out TimeSpan result)
 
static Exception TryToGuid (string s, out Guid result)
 
static Uri ToUri (string s)
 
static Exception TryToUri (string s, out Uri result)
 
static bool StrEqual (char[] chars, int strPos1, int strLen1, string str2)
 
static string TrimString (string value)
 
static string TrimStringStart (string value)
 
static string TrimStringEnd (string value)
 
static string[] SplitString (string value)
 
static string[] SplitString (string value, StringSplitOptions splitStringOptions)
 
static bool IsNegativeZero (double value)
 
static void VerifyCharData (string data, ExceptionType exceptionType)
 
static void VerifyCharData (string data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType)
 
static void VerifyCharData (char[] data, int offset, int len, ExceptionType exceptionType)
 
static string EscapeValueForDebuggerDisplay (string value)
 
static Exception CreateException (string res, ExceptionType exceptionType, int lineNo, int linePos)
 
static Exception CreateException (string res, string arg, ExceptionType exceptionType)
 
static Exception CreateException (string res, string arg, ExceptionType exceptionType, int lineNo, int linePos)
 
static Exception CreateException (string res, string[] args, ExceptionType exceptionType)
 
static Exception CreateException (string res, string[] args, ExceptionType exceptionType, int lineNo, int linePos)
 
static Exception CreateInvalidSurrogatePairException (char low, char hi)
 
static Exception CreateInvalidSurrogatePairException (char low, char hi, ExceptionType exceptionType)
 
static Exception CreateInvalidSurrogatePairException (char low, char hi, ExceptionType exceptionType, int lineNo, int linePos)
 
static Exception CreateInvalidHighSurrogateCharException (char hi)
 
static Exception CreateInvalidHighSurrogateCharException (char hi, ExceptionType exceptionType)
 
static Exception CreateInvalidHighSurrogateCharException (char hi, ExceptionType exceptionType, int lineNo, int linePos)
 
static Exception CreateInvalidCharException (char[] data, int length, int invCharPos, ExceptionType exceptionType)
 
static Exception CreateInvalidCharException (string data, int invCharPos)
 
static Exception CreateInvalidCharException (string data, int invCharPos, ExceptionType exceptionType)
 
static Exception CreateInvalidCharException (char invChar, char nextChar)
 
static Exception CreateInvalidCharException (char invChar, char nextChar, ExceptionType exceptionType)
 
static Exception CreateInvalidNameCharException (string name, int index, ExceptionType exceptionType)
 
static ArgumentException CreateInvalidNameArgumentException (string name, string argumentName)
 

Static Package Attributes

static char[] crt = new char[3] { '\n', '\r', '\t' }
 
static readonly char[] WhitespaceChars = new char[4] { ' ', '\t', '\n', '\r' }
 

Properties

static string[] AllDateTimeFormats [get]
 

Static Private Member Functions

static string EncodeName (string name, bool first, bool local)
 
static int FromHex (char digit)
 
static void CreateAllDateTimeFormats ()
 
static DateTime SwitchToLocalTime (DateTime value)
 
static DateTime SwitchToUtcTime (DateTime value)
 

Static Private Attributes

static readonly CultureInfo s_invariantCultureInfo = CultureInfo.InvariantCulture
 
static volatile Regex s_encodeCharPattern
 
static volatile Regex s_decodeCharPattern
 
static volatile string[] s_allDateTimeFormats
 

Detailed Description

Definition at line 10 of file XmlConvert.cs.


The documentation for this class was generated from the following file: