Results 1 to 4 of 4

Thread: [RESOLVED] Whats this all about?

  1. #1

    Thread Starter
    Hyperactive Member cptHotkeys's Avatar
    Join Date
    Apr 2007
    Location
    New Zealand
    Posts
    294

    Resolved [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...

    Signatures suck

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    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

  3. #3

    Thread Starter
    Hyperactive Member cptHotkeys's Avatar
    Join Date
    Apr 2007
    Location
    New Zealand
    Posts
    294

    Re: Whats this all about?

    Got it. Thanks allot.

    Signatures suck

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    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
  •  



Click Here to Expand Forum to Full Width