the current Var object also allows implicit conversion for example
Var xx = 30;

but the main reason why 'Var' is indispensable at the moment, is, that certain functions like "pan_setneedle" take a REFERENCE to a variable !
and in c# it's not possible (at least not user friendly afaik) to get the reference to a value type, like int, var, or float !
and if one would only use implicit conversion, for example :

Var xx = 30;
and then give pan_setneedle the xx variable
and then for example change xx like this : xx = 400 + 70;
pan_setneedle would NOT take notice of the change, as xx references now to another new variable...

but nonetheless, the wrapper already uses implicit conversion, thus

float value1 = 3.4f;
int bla = minv(value1, 100);

and

int currentTimeStepValue = EngVar.time_step;
int currentTimeStepValue2 = EngVar.time_step.IntValue;

should work fine afaik!

I already tried to use ventilator's suggestion - lambda expressions, but they don't seem to be able to hold references to value types in c# frown


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread