-
Notifications
You must be signed in to change notification settings - Fork 4
DotClass
Mehdi Mohammadi edited this page Dec 29, 2013
·
1 revision
.class returns type of (java.lang.Class reference). We transform this construct to typeof in NativeMode and Class.forName in VirtualizationMode
[Java]
public class Test
{
public void Method()
{
Class stringClass = String.class;
}
}
[C#(DotNet)]
public class Test
{
public void Method()
{
System.Type stringClass = typeof(String);
}
}
[C#(IKVM)]
public class Test
{
public void Method()
{
Class stringClass = java.lang.Class.forName(typeof(String).AssemblyQualifiedName);
}
}