java.lang.string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm trying to port java code to c#, I am not too familiar with either so forgive me for what might be a stupid question, I wish to use the java string type rather than the c# one, when I try to declare the type as java.lang.string I am not allowed, is there a way I can use the java string type rather than the c# native string type.
Any help would be great.
Thanks,
barry.
 
vbdotnetmania said:
Hi,
I'm trying to port java code to c#, I am not too familiar with either
so forgive me for what might be a stupid question, I wish to use the java
string type rather than the c# one, when I try to declare the type as
java.lang.string I am not allowed, is there a way I can use the java string
type rather than the c# native string type.
Any help would be great.
Thanks,
barry.
First, you'd probably have better luck with your question if you posted in
the C# group, rather than this C++ group. The group you'd want is:

microsoft.public.dotnet.languages.csharp

However, I have to ask a question here. As both the Java String class and
the .NET Framework String class (used by C#) are similar in general text
handling capabilities (the .NET String class has more features), I'm curious
as to why you feel the need to stay with Java strings?

Questions aside, you'll not be able to use Java. (referring to the Sun Java
2 API) anything in C#.
 
Back
Top