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; };
Have you heard of the Java Language Conversion Tool? I think it installs with Visual Studio.NET 2003. Cris [quoted text, click to view] "jeff" <jeff@discussions.microsoft.com> wrote in message news:A8BFF588-DB15-42EE-BB5E-D13275509A44@microsoft.com... > 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?
Don't see what you're looking for? Try a search.
|