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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Float based math class. Is it exist? 9
Creating a static class 5
Algebra in C# 6
where T : class 1
Declared namespaces in small projects? 4
Call an C# inherited class from VB6 0
class properties 9
Math libarary 5

Back
Top