Why is Array.sort called shared

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

    Why is Array.sort called shared

    Hello!

    I'm reading in book and it says the following.

    They say that
    Array.Sort(ar);
    is a shared/static method

    This sort method is indeed a static method which is correct but
    what does they mean when they say that it's shared ?

    //Tony


  • Brian Gideon

    #2
    Re: Why is Array.sort called shared

    On Sep 19, 9:59 am, "Tony Johansson" <johansson.ande rs...@telia.com >
    wrote:
    Hello!
    >
    I'm reading in book and it says the following.
    >
    They say that
    Array.Sort(ar);
    is a shared/static method
    >
    This sort method is indeed a static method which is correct but
    what does they mean when they say that it's shared ?
    >
    //Tony
    VB.NET uses the keyword Shared to declare static members.

    Comment

    • Hans Kesting

      #3
      Re: Why is Array.sort called shared

      Tony Johansson wrote :
      Hello!
      >
      I'm reading in book and it says the following.
      >
      They say that
      Array.Sort(ar);
      is a shared/static method
      >
      This sort method is indeed a static method which is correct but
      what does they mean when they say that it's shared ?
      >
      //Tony
      the C# keyword "static" is in VB "shared"

      Hans Kesting


      Comment

      Working...