Re: [Ikvm-developers] Implicit Casting from Int16/Int32 to java.lang.Integer?
Brought to you by:
jfrijters
From: Jeroen F. <je...@su...> - 2013-06-06 08:59:52
|
Hi, There is no implicit conversion from C# primitives to Java boxed numbers and it won't be added. Regards, Jeroen > -----Original Message----- > From: axel stumpp (innoWake gmbh) [mailto:axe...@in...] > Sent: Thursday, June 6, 2013 10:34 > To: ikv...@li... > Subject: [Ikvm-developers] Implicit Casting from Int16/Int32 to > java.lang.Integer? > > 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. |