System.Math

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DrJRice

    System.Math

    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
  • Mattias Sjögren

    #2
    Re: System.Math

    [color=blue]
    >In Vosual Studio.net I am missing the reference to System.Math[/color]

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

    [color=blue]
    >I assume is is System.Math.dll . Where the hell is it?[/color]

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



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    • Jay B. Harlow [MVP - Outlook]

      #3
      Re: System.Math

      Jim,[color=blue]
      > Where the hell is it?[/color]
      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.



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

      Hope this helps
      Jay


      "DrJRice" <drjrice@comcas t.net> wrote in message
      news:96e201c37f ce$5f62b200$a60 1280a@phx.gbl.. .[color=blue]
      > 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[/color]


      Comment

      • Jim

        #4
        Re: System.Math

        Thanks,

        Opened up the object browser and there they were in
        mscorlib.

        Thanks again,
        Jim[color=blue]
        >-----Original Message-----
        >[color=green]
        >>In Vosual Studio.net I am missing the reference to [/color][/color]
        System.Math[color=blue]
        >
        >What makes you think that? Are you sure you're not just [/color]
        missing an[color=blue]
        >Imports statement?
        >
        >[color=green]
        >>I assume is is System.Math.dll . Where the hell is it?[/color]
        >
        >No there isn't. System.Math is implemented in [/color]
        Mscorlib.dll, which is[color=blue]
        >always referenced.
        >
        >
        >
        >Mattias
        >
        >--
        >Mattias Sjögren [MVP] mattias @ mvps.org
        >http://www.msjogren.net/dotnet/
        >Please reply only to the newsgroup.
        >.
        >[/color]

        Comment

        Working...