C# Class System.Xml.XmlConvert

Mostra file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CreateAllDateTimeFormats void
CreateException System.Exception
CreateException System.Exception
CreateException System.Exception
CreateException System.Exception
CreateInvalidCharException System.Exception
CreateInvalidCharException System.Exception
CreateInvalidCharException System.Exception
CreateInvalidCharException System.Exception
CreateInvalidCharException System.Exception
CreateInvalidCharException System.Exception
CreateInvalidHighSurrogateCharException System.Exception
CreateInvalidHighSurrogateCharException System.Exception
CreateInvalidHighSurrogateCharException System.Exception
CreateInvalidNameArgumentException System.ArgumentException
CreateInvalidNameCharException System.Exception
CreateInvalidSurrogatePairException System.Exception
CreateInvalidSurrogatePairException System.Exception
CreateInvalidSurrogatePairException System.Exception
DoubleToInt64Bits long
EncodeName string
EscapeValueForDebuggerDisplay string
FromBinHexString byte[]
FromBinHexString byte[]
FromHex int
IsNegativeZero bool
SplitString string[]
SplitString string[]
StrEqual bool
SwitchToLocalTime System.DateTime
SwitchToUtcTime System.DateTime
ToBinHexString string
ToDateTime System.DateTime
ToInteger Decimal
ToSByte SByte
ToString string
ToString string
ToString string
ToString string
ToString string
ToUInt16 System.UInt16
ToUInt32 System.UInt32
ToUInt64 System.UInt64
ToUri System.Uri
ToXPathDouble Double
ToXPathString String
TrimString string
TrimStringEnd string
TrimStringStart string
TryToBoolean System.Exception
TryToByte System.Exception
TryToChar System.Exception
TryToDecimal System.Exception
TryToDouble System.Exception
TryToGuid System.Exception
TryToInt16 System.Exception
TryToInt32 System.Exception
TryToInt64 System.Exception
TryToInteger System.Exception
TryToSByte System.Exception
TryToSingle System.Exception
TryToTimeSpan System.Exception
TryToUInt16 System.Exception
TryToUInt32 System.Exception
TryToUInt64 System.Exception
TryToUri System.Exception
TryVerifyNCName System.Exception
TryVerifyNMTOKEN System.Exception
TryVerifyName System.Exception
TryVerifyNormalizedString System.Exception
TryVerifyTOKEN System.Exception
VerifyCharData void
VerifyCharData void
VerifyCharData void
VerifyNCName string
VerifyNMTOKEN string
VerifyNormalizedString string
VerifyQName string
VerifyQName string
XPathRound Double

Public Methods

Method Description
DecodeName ( string name ) : string
EncodeLocalName ( string name ) : string
EncodeName ( string name ) : string
EncodeNmToken ( string name ) : string
IsNCNameChar ( char ch ) : bool
IsNCNameSurrogatePair ( char lowChar, char highChar ) : bool
IsPublicIdChar ( char ch ) : bool
IsStartNCNameChar ( char ch ) : bool
IsStartNCNameSurrogatePair ( char lowChar, char highChar ) : bool
IsWhitespaceChar ( char ch ) : bool
IsXmlChar ( char ch ) : bool
IsXmlSurrogatePair ( char lowChar, char highChar ) : bool
ToBoolean ( string s ) : System.Boolean
ToByte ( string s ) : Byte
ToChar ( string s ) : Char
ToDateTime ( string s, XmlDateTimeSerializationMode dateTimeOption ) : System.DateTime
ToDateTime ( string s, string format ) : System.DateTime
ToDateTimeOffset ( string s ) : DateTimeOffset
ToDateTimeOffset ( string s, string format ) : DateTimeOffset
ToDecimal ( string s ) : Decimal
ToDouble ( string s ) : Double
ToGuid ( string s ) : System.Guid
ToInt16 ( string s ) : Int16
ToInt32 ( string s ) : Int32
ToInt64 ( string s ) : System.Int64
ToSingle ( string s ) : System.Single
ToString ( System.Boolean value ) : string
ToString ( Byte value ) : string
ToString ( Char value ) : string
ToString ( System.DateTime value, XmlDateTimeSerializationMode dateTimeOption ) : string
ToString ( System.DateTime value, string format ) : string
ToString ( DateTimeOffset value ) : string
ToString ( DateTimeOffset value, string format ) : string
ToString ( Decimal value ) : string
ToString ( Double value ) : string
ToString ( System.Guid value ) : string
ToString ( Int16 value ) : string
ToString ( Int32 value ) : string
ToString ( System.Int64 value ) : string
ToString ( System.Single value ) : string
ToString ( System.TimeSpan value ) : string
ToTimeSpan ( string s ) : System.TimeSpan
VerifyNCName ( string name ) : string
VerifyNMTOKEN ( string name ) : string
VerifyName ( string name ) : string
VerifyPublicId ( string publicId ) : string
VerifyTOKEN ( string token ) : string
VerifyWhitespace ( string content ) : string
VerifyXmlChars ( string content ) : string

Private Methods

Method Description
CreateAllDateTimeFormats ( ) : void
CreateException ( string res, ExceptionType exceptionType ) : Exception
CreateException ( string res, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
CreateException ( string res, string arg, ExceptionType exceptionType ) : Exception
CreateException ( string res, string arg, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
CreateInvalidCharException ( char invChar, char nextChar ) : Exception
CreateInvalidCharException ( char invChar, char nextChar, ExceptionType exceptionType ) : Exception
CreateInvalidCharException ( char data, int length, int invCharPos ) : Exception
CreateInvalidCharException ( char data, int length, int invCharPos, ExceptionType exceptionType ) : Exception
CreateInvalidCharException ( string data, int invCharPos ) : Exception
CreateInvalidCharException ( string data, int invCharPos, ExceptionType exceptionType ) : Exception
CreateInvalidHighSurrogateCharException ( char hi ) : Exception
CreateInvalidHighSurrogateCharException ( char hi, ExceptionType exceptionType ) : Exception
CreateInvalidHighSurrogateCharException ( char hi, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
CreateInvalidNameArgumentException ( string name, string argumentName ) : ArgumentException
CreateInvalidNameCharException ( string name, int index, ExceptionType exceptionType ) : Exception
CreateInvalidSurrogatePairException ( char low, char hi ) : Exception
CreateInvalidSurrogatePairException ( char low, char hi, ExceptionType exceptionType ) : Exception
CreateInvalidSurrogatePairException ( char low, char hi, ExceptionType exceptionType, int lineNo, int linePos ) : Exception
DoubleToInt64Bits ( double value ) : long
EncodeName ( string name, bool first, bool local ) : string
EscapeValueForDebuggerDisplay ( string value ) : string
FromBinHexString ( string s ) : byte[]
FromBinHexString ( string s, bool allowOddCount ) : byte[]
FromHex ( char digit ) : int
IsNegativeZero ( double value ) : bool
SplitString ( string value ) : string[]
SplitString ( string value, StringSplitOptions splitStringOptions ) : string[]
StrEqual ( char chars, int strPos1, int strLen1, string str2 ) : bool
SwitchToLocalTime ( System.DateTime value ) : System.DateTime
SwitchToUtcTime ( System.DateTime value ) : System.DateTime
ToBinHexString ( byte inArray ) : string
ToDateTime ( string s ) : System.DateTime
ToInteger ( string s ) : Decimal
ToSByte ( string s ) : SByte
ToString ( System.DateTime value ) : string
ToString ( SByte value ) : string
ToString ( UInt16 value ) : string
ToString ( UInt32 value ) : string
ToString ( System.UInt64 value ) : string
ToUInt16 ( string s ) : UInt16
ToUInt32 ( string s ) : UInt32
ToUInt64 ( string s ) : System.UInt64
ToUri ( string s ) : Uri
ToXPathDouble ( Object o ) : Double
ToXPathString ( Object value ) : String
TrimString ( string value ) : string
TrimStringEnd ( string value ) : string
TrimStringStart ( string value ) : string
TryToBoolean ( string s, System.Boolean &result ) : Exception
TryToByte ( string s, Byte &result ) : Exception
TryToChar ( string s, Char &result ) : Exception
TryToDecimal ( string s, Decimal &result ) : Exception
TryToDouble ( string s, double &result ) : Exception
TryToGuid ( string s, System.Guid &result ) : Exception
TryToInt16 ( string s, Int16 &result ) : Exception
TryToInt32 ( string s, Int32 &result ) : Exception
TryToInt64 ( string s, System.Int64 &result ) : Exception
TryToInteger ( string s, Decimal &result ) : Exception
TryToSByte ( string s, SByte &result ) : Exception
TryToSingle ( string s, System.Single &result ) : Exception
TryToTimeSpan ( string s, System.TimeSpan &result ) : Exception
TryToUInt16 ( string s, UInt16 &result ) : Exception
TryToUInt32 ( string s, UInt32 &result ) : Exception
TryToUInt64 ( string s, System.UInt64 &result ) : Exception
TryToUri ( string s, Uri &result ) : Exception
TryVerifyNCName ( string name ) : Exception
TryVerifyNMTOKEN ( string name ) : Exception
TryVerifyName ( string name ) : Exception
TryVerifyNormalizedString ( string str ) : Exception
TryVerifyTOKEN ( string token ) : Exception
VerifyCharData ( char data, int offset, int len, ExceptionType exceptionType ) : void
VerifyCharData ( string data, ExceptionType exceptionType ) : void
VerifyCharData ( string data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType ) : void
VerifyNCName ( string name, ExceptionType exceptionType ) : string
VerifyNMTOKEN ( string name, ExceptionType exceptionType ) : string
VerifyNormalizedString ( string str ) : string
VerifyQName ( string name ) : string
VerifyQName ( string name, ExceptionType exceptionType ) : string
XPathRound ( Double value ) : Double

Method Details

DecodeName() public static method

public static DecodeName ( string name ) : string
name string
return string

EncodeLocalName() public static method

public static EncodeLocalName ( string name ) : string
name string
return string

EncodeName() public static method

public static EncodeName ( string name ) : string
name string
return string

EncodeNmToken() public static method

public static EncodeNmToken ( string name ) : string
name string
return string

IsNCNameChar() public static method

public static IsNCNameChar ( char ch ) : bool
ch char
return bool

IsNCNameSurrogatePair() public static method

public static IsNCNameSurrogatePair ( char lowChar, char highChar ) : bool
lowChar char
highChar char
return bool

IsPublicIdChar() public static method

public static IsPublicIdChar ( char ch ) : bool
ch char
return bool

IsStartNCNameChar() public static method

public static IsStartNCNameChar ( char ch ) : bool
ch char
return bool

IsStartNCNameSurrogatePair() public static method

public static IsStartNCNameSurrogatePair ( char lowChar, char highChar ) : bool
lowChar char
highChar char
return bool

IsWhitespaceChar() public static method

public static IsWhitespaceChar ( char ch ) : bool
ch char
return bool

IsXmlChar() public static method

public static IsXmlChar ( char ch ) : bool
ch char
return bool

IsXmlSurrogatePair() public static method

public static IsXmlSurrogatePair ( char lowChar, char highChar ) : bool
lowChar char
highChar char
return bool

ToBoolean() public static method

public static ToBoolean ( string s ) : System.Boolean
s string
return System.Boolean

ToByte() public static method

public static ToByte ( string s ) : Byte
s string
return Byte

ToChar() public static method

public static ToChar ( string s ) : Char
s string
return Char

ToDateTime() public static method

public static ToDateTime ( string s, XmlDateTimeSerializationMode dateTimeOption ) : System.DateTime
s string
dateTimeOption XmlDateTimeSerializationMode
return System.DateTime

ToDateTime() public static method

public static ToDateTime ( string s, string format ) : System.DateTime
s string
format string
return System.DateTime

ToDateTimeOffset() public static method

public static ToDateTimeOffset ( string s ) : DateTimeOffset
s string
return DateTimeOffset

ToDateTimeOffset() public static method

public static ToDateTimeOffset ( string s, string format ) : DateTimeOffset
s string
format string
return DateTimeOffset

ToDecimal() public static method

public static ToDecimal ( string s ) : Decimal
s string
return Decimal

ToDouble() public static method

public static ToDouble ( string s ) : Double
s string
return Double

ToGuid() public static method

public static ToGuid ( string s ) : System.Guid
s string
return System.Guid

ToInt16() public static method

public static ToInt16 ( string s ) : Int16
s string
return System.Int16

ToInt32() public static method

public static ToInt32 ( string s ) : Int32
s string
return System.Int32

ToInt64() public static method

public static ToInt64 ( string s ) : System.Int64
s string
return System.Int64

ToSingle() public static method

public static ToSingle ( string s ) : System.Single
s string
return System.Single

ToString() public static method

public static ToString ( System.Boolean value ) : string
value System.Boolean
return string

ToString() public static method

public static ToString ( Byte value ) : string
value Byte
return string

ToString() public static method

public static ToString ( Char value ) : string
value Char
return string

ToString() public static method

public static ToString ( System.DateTime value, XmlDateTimeSerializationMode dateTimeOption ) : string
value System.DateTime
dateTimeOption XmlDateTimeSerializationMode
return string

ToString() public static method

public static ToString ( System.DateTime value, string format ) : string
value System.DateTime
format string
return string

ToString() public static method

public static ToString ( DateTimeOffset value ) : string
value DateTimeOffset
return string

ToString() public static method

public static ToString ( DateTimeOffset value, string format ) : string
value DateTimeOffset
format string
return string

ToString() public static method

public static ToString ( Decimal value ) : string
value Decimal
return string

ToString() public static method

public static ToString ( Double value ) : string
value Double
return string

ToString() public static method

public static ToString ( System.Guid value ) : string
value System.Guid
return string

ToString() public static method

public static ToString ( Int16 value ) : string
value System.Int16
return string

ToString() public static method

public static ToString ( Int32 value ) : string
value System.Int32
return string

ToString() public static method

public static ToString ( System.Int64 value ) : string
value System.Int64
return string

ToString() public static method

public static ToString ( System.Single value ) : string
value System.Single
return string

ToString() public static method

public static ToString ( System.TimeSpan value ) : string
value System.TimeSpan
return string

ToTimeSpan() public static method

public static ToTimeSpan ( string s ) : System.TimeSpan
s string
return System.TimeSpan

VerifyNCName() public static method

public static VerifyNCName ( string name ) : string
name string
return string

VerifyNMTOKEN() public static method

public static VerifyNMTOKEN ( string name ) : string
name string
return string

VerifyName() public static method

public static VerifyName ( string name ) : string
name string
return string

VerifyPublicId() public static method

public static VerifyPublicId ( string publicId ) : string
publicId string
return string

VerifyTOKEN() public static method

public static VerifyTOKEN ( string token ) : string
token string
return string

VerifyWhitespace() public static method

public static VerifyWhitespace ( string content ) : string
content string
return string

VerifyXmlChars() public static method

public static VerifyXmlChars ( string content ) : string
content string
return string