How to convert code to C#

How to convert code to C#

Post by amVmZ » Thu, 16 Jun 2005 02:50:02


hi, all.

I have a java project.

now I want to change it to C#
there is one code, I am confused.
How to convert it into C#?

Thanks

// We can use in C#
private static char[] map1 = new char[]
{

'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',

'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
'0','1','2','3','4','5','6','7','8','9',
'+','/'
};

????????????????
private static byte[] map2 = new byte[128];
static
{
for (int i=0; i<map2.length; i++) map2[i] = -1;
for (int i=0; i<64; i++) map2[map1[i]] = (byte)i;
};

it need me change it one by one?
 
 
 

How to convert code to C#

Post by gyuris » Sat, 02 Jul 2005 05:46:33

Have you heard of the Java Language Conversion Tool? I think it installs
with Visual Studio.NET 2003.

Cris