-
Notifications
You must be signed in to change notification settings - Fork 4
KeywordsRename
Mehdi Mohammadi edited this page Dec 30, 2013
·
1 revision
There are some C# keywords that can be used in Java as variable, field, parameter and so on. These identifiers should be renamed to something else.
Some of frequently used ones are: in, out, params, base, string, object. To rename them, we append an underscore character ('_') at the beginning of them.
[Java]
public class A
{
public void Method(String string)
{
int in;
int out;
out = in.toInt();
}
}
[C#]
public class A
{
public void Method(String _string)
{
int _in;
int _out;
_out = _in.toInt();
}
}