|
-
Jun 26th, 2007, 06:45 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Whats this all about?
Whats up with classes, objects or types that are wrapped inside []...
eg
Code:
Dim myassembly As [Assembly] = [Assembly].LoadFrom(path)
I dont want to know about the assembly class, just the [] as I have seen it appear several times without explanation, I have tried google but have not found any explanation of this anywhere...
-
Jun 26th, 2007, 06:52 PM
#2
Re: Whats this all about?
Assembly is a keyword, and it is also a class. The [] tell the compiler that you mean the class not the keyword.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 26th, 2007, 07:07 PM
#3
Thread Starter
Hyperactive Member
Re: Whats this all about?
-
Jun 26th, 2007, 09:54 PM
#4
Re: [RESOLVED] Whats this all about?
Funny, I've never seen that before, but this is the second thread on the subject in the last month.
It's a bad idea from a maintenance point of view to name a class using a keyword. Confusion is right around the corner.
My usual boring signature: Nothing
 
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
|