CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2007
    Posts
    43

    public shared function

    is that basically the same as a static function in C#, where you don't have to create an instance, you can just call the method on a class?

    I am new to VB.NET and need to do some coding in it.

    Please let me know.


    Thanks,

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: public shared function

    The term Shared means that it is shared accross all instances of a class and because of that, you don't need any particular instance to use it, so yes, it is the same as static

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured