C# Класс System.Net.WebUtility

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HtmlDecode ( string value ) : string
HtmlDecode ( string value, TextWriter output ) : void
HtmlEncode ( string value ) : string
HtmlEncode ( string value, TextWriter output ) : void
UrlDecodeToBytes ( byte encodedValue, int offset, int count ) : byte[]
UrlEncodeToBytes ( byte value, int offset, int count ) : byte[]

Приватные методы

Метод Описание
ConvertSmpToUtf16 ( uint smpChar, char &leadingSurrogate, char &trailingSurrogate ) : void
GetEncodedBytes ( byte originalBytes, int offset, int count, byte expandedBytes ) : void
GetNextUnicodeScalarValueFromUtf16Surrogate ( char &pch, int &charsRemaining ) : int
HexToInt ( char h ) : int
HtmlDecode ( string value, StringBuilder output ) : void
HtmlEncode ( string value, int index, StringBuilder output ) : void
IndexOfHtmlEncodingChars ( string s, int startPos ) : int
IntToHex ( int n ) : char
IsUrlSafeChar ( char ch ) : bool
StringRequiresHtmlDecoding ( string s ) : bool
UrlDecode ( string encodedValue ) : string
UrlDecodeInternal ( byte bytes, int offset, int count ) : byte[]
UrlDecodeInternal ( string value, Encoding encoding ) : string
UrlEncode ( string value ) : string
ValidateUrlEncodingParameters ( byte bytes, int offset, int count ) : bool

Описание методов

HtmlDecode() публичный статический метод

public static HtmlDecode ( string value ) : string
value string
Результат string

HtmlDecode() публичный статический метод

public static HtmlDecode ( string value, TextWriter output ) : void
value string
output System.IO.TextWriter
Результат void

HtmlEncode() публичный статический метод

public static HtmlEncode ( string value ) : string
value string
Результат string

HtmlEncode() публичный статический метод

public static HtmlEncode ( string value, TextWriter output ) : void
value string
output System.IO.TextWriter
Результат void

UrlDecodeToBytes() публичный статический метод

public static UrlDecodeToBytes ( byte encodedValue, int offset, int count ) : byte[]
encodedValue byte
offset int
count int
Результат byte[]

UrlEncodeToBytes() публичный статический метод

public static UrlEncodeToBytes ( byte value, int offset, int count ) : byte[]
value byte
offset int
count int
Результат byte[]