Results 1 to 3 of 3

Thread: Imports TypeAlias = System.String ???

  1. #1

    Thread Starter
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

    Imports TypeAlias = System.String ???

    VB Code:
    1. Imports TypeAlias = System.String
    2.  
    3. '....
    4.  
    5. Public Sub Test(Info as TypeAlias)
    6.    MessageBox.Show(Info)
    7. End Sub

    Is this common knowlege?

    I have only seen it used once in a C# project (using Alias = System.String that I was converting.
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Imports TypeAlias = System.String ???

    Common knowledge about namespace aliases? Yes, somewhat common.

    Usage? Well, this particular case, not so common.

  3. #3

    Thread Starter
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

    Re: Imports TypeAlias = System.String ???

    Am I misunderstanding the intent of this feature? This is basicly how it was used in the C# project.

    Defining hWnd as a alias of System.IntPtr
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

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