[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...
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.
Re: Whats this all about?
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.