Missing Math Class in applications

  • Thread starter Thread starter discosammy
  • Start date Start date
D

discosammy

I'm kind of puzzled by this.

The necessary dll is present and if i create a new file, it's there,
working fine.

If i create a new class, and add the same "using" declarations that
are on the form where it's working, but the Math class isn't there.

Why wouldn't it be there? I'm puzzled. Isn't it a part of the System?
 
discosammy said:
I'm kind of puzzled by this.

The necessary dll is present and if i create a new file, it's there,
working fine.

If i create a new class, and add the same "using" declarations that
are on the form where it's working, but the Math class isn't there.

Why wouldn't it be there? I'm puzzled. Isn't it a part of the System?

The Math class is in the System namespace in the mscorlib.dll, so you
can't even get rid of it.

Having "using System;" in the page should give you access to the class,
or specifying System.Math;

Do you have any members in your code named System or Math? That could
mess up things...
 
I'm kind of puzzled by this.

The necessary dll is present and if i create a new file, it's there,
working fine.

If i create a new class, and add the same "using" declarations that
are on the form where it's working, but the Math class isn't there.

Why wouldn't it be there? I'm puzzled. Isn't it a part of the System?

It's part of System , so it will always be there. Can you post a short
example?

Pd:
Try to name fully, like System.Math maybe you have another
declaration of Math in another namespace and there is a conflict
 
Having "using System;" in the page should give you access to the class,
or specifying System.Math;

Do you have any members in your code named System or Math? That could
mess up things...

Duh.... I had something named Math in a class. Rookie mistakes. Thanks.
 
Back
Top