Csharp/C Sharp by API/System.Text/ASCIIEncoding — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 15:13, 26 мая 2010
new ASCIIEncoding
<source lang="csharp"> using System; using System.Text; class StringEncodingApp {
static void Main(string[] args) { ASCIIEncoding ae = new ASCIIEncoding(); Console.WriteLine(ae.GetString(new byte[]{1,2,3})); UnicodeEncoding bu = new UnicodeEncoding(true, false); Console.WriteLine(bu.GetString(new byte[]{1,2,3})); }
}
</source>