System.Math

  • Thread starter Thread starter DrJRice
  • Start date Start date
D

DrJRice

I have just switched from VB6 to vb .net. In Vosual
Studio.net I am missing the reference to System.Math and
can not find it anywhere. I assume is is System.Math.dll.
Where the hell is it?

Thanks,
Jim
 
In Vosual Studio.net I am missing the reference to System.Math

What makes you think that? Are you sure you're not just missing an
Imports statement?

I assume is is System.Math.dll. Where the hell is it?

No there isn't. System.Math is implemented in Mscorlib.dll, which is
always referenced.



Mattias
 
Jim,
Where the hell is it?
No place, as there is not a System.Math.dll ;-)

System.Math is a class within the mscorlib assembly.

mscorlib is the core .NET library which means you cannot write a VB.NET
program without it! (read mscorlib is automatically referenced and you
cannot unreference it).

If you look up System.Math (or other class) in MSDN at the bottom of the
overview page is a Requirements section. This section lists the Namespace
the class is in. Plus it lists the assembly the class is in, along with what
platforms the class supports. Note Some classes are partially supported on
different platforms, so you need to check the individual methods.

http://msdn.microsoft.com/library/d...n-us/cpref/html/frlrfSystemMathClassTopic.asp

Remember that an individual Namespace (System.Data for example) may have
classes in different assemblies.

Hope this helps
Jay
 
Back
Top