[Ikvm-developers] Implicit Casting from Int16/Int32 to java.lang.Integer?
Brought to you by:
jfrijters
|
From: axel s. (i. gmbh) <axe...@in...> - 2013-06-06 08:33:54
|
Hello,
i have a question about implicit casting.
I've got a java method which looks like this:
public boolean isNumberSpecial(java.lang.Number parameter) {
blabla;
return true;
}
Now, when i use this method in the C# environment, i have to use it like this:
If(isNumberSpecial(new java.lang.Integer(1))
{
}
Is there a way to omit the "new java Object" thing like:
If(isNumberSpecial(1)
{
}
I don't want to see the C# coder any "java-things".
Greetings,
Axel Stumpp
--
Axel Stumpp
Softwareentwicklung, Beratung
innoWake gmbh
innovativ | nachhaltig | flexibel
IT-Tower
Robert-Bosch-Str. 1 | 89250 Senden
Fon: +49.7307.92190.162
Fax: +49.7307.92190.20
axe...@in...
www.innowake.de
HRB Memmingen 13512
Geschäftsführer: Thorsten Bernecker, Björn Langmack, Mirko Schliemann
This e-mail may contain confidential information. If you are not the intended recipient please notify the sender immediately and destroy this e-mail.
|