[Mono-dev] Mono.CSharp: Evaluating math expressions

Fredo Morkel fmorkel at yahoo.de
Thu Jun 21 17:35:26 UTC 2012


I'm trying out Mono.CSharp's evaluator. Why does this simple script work:

int i=2,j=3; 
(i*j);

whereas this gives an error:

int i=2,j=3; 
i*j;

saying "(1,2): error CS0246: The type or namespace name `i' could not be
found. Are you missing a using directive or an assembly reference?"

An expression like
i+j;
or
i-j;
work fine. So why does "i*j" NOT work?

Regards,
Fredo



--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-CSharp-Evaluating-math-expressions-tp4650120.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list