Groups | Blog | Home
all groups > dotnet sdk > june 2005 >

dotnet sdk : How to convert code to C#


jeff
6/14/2005 10:50:02 AM
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;
};

gyurisc
6/30/2005 10:46:33 PM
Have you heard of the Java Language Conversion Tool? I think it installs
with Visual Studio.NET 2003.

Cris
[quoted text, click to view]

AddThis Social Bookmark Button