|
-
May 31st, 2005, 05:47 PM
#1
Thread Starter
Frenzied Member
Imports TypeAlias = System.String ???
VB Code:
Imports TypeAlias = System.String
'....
Public Sub Test(Info as TypeAlias)
MessageBox.Show(Info)
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
-
May 31st, 2005, 08:05 PM
#2
Re: Imports TypeAlias = System.String ???
Common knowledge about namespace aliases? Yes, somewhat common.
Usage? Well, this particular case, not so common.
-
Jun 1st, 2005, 02:00 AM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|