El lun, 23-02-2004 a las 05:34, Matthew Franz escribi�:
> I realize this is a C# issue but can one create "binary strings" in C# using
> string="\xff\x00\x00\xff" used by C/Python?
> 
> Why do my 0xff's get translated to 0x3f's???

I get this:
------
[EMAIL PROTECTED]:~/go-mono$ cat bobo.cs
using System;class SimpleTest{    public static void Main(String[]
args)    {      String bobo = "\xFF\xFF";       
System.Console.Write(bobo);    }}
[EMAIL PROTECTED]:~/go-mono$ mono bobo.exe | od -x
0000000 ffff
0000002
[EMAIL PROTECTED]:~/go-mono$ cat bobo.cs | indent
using System;
class SimpleTest
{
  public static void Main (String[]args)
  {
    String bobo = "\xFF\xFF";
      System.Console.Write (bobo);
}}
[EMAIL PROTECTED]:~/go-mono$ mcs bobo.cs
Compilation succeeded
[EMAIL PROTECTED]:~/go-mono$ mono bobo.exe | od -x
0000000 ffff
0000002
-----

-Gonzalo



_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to