Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4023034
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:32:57+00:00 2026-05-20T10:32:57+00:00

Possible Duplicate: What does [String] mean in VB.NET? Dim assem As [Assembly] = [Assembly].GetExecutingAssembly()

  • 0

Possible Duplicate:
What does [String] mean in VB.NET?

Dim assem As [Assembly] = [Assembly].GetExecutingAssembly()

Dim assem As Assembly = Assembly.GetExecutingAssembly()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:32:58+00:00Added an answer on May 20, 2026 at 10:32 am

    Square braces in VB.NET are used to allow for literal naming, even if the identifier might be a keyword in VB.NET. Generally, these are more prevalent in generated code, since there’s no point in doing it unless the word actually is a keyword.

    In this case, there is no difference. What square braces allow you to do would be to, say, name a class the same as a keyword in VB.NET. For example,

    Dim test as [Dim]
    

    This would allow you to name your class Dim, which would ordinarily give you an error since Dim is a keyword.

    Likewise, you can use it for variable names:

    Dim [Dim] as String
    

    Here, instead of on the type name, we’re using it on the variable name. Same concept.

    However, if you’re doing this, then it’s generally a code smell; it’s usually a better idea to find a name that isn’t a keyword so that people using your class don’t have to enclose the name in braces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: What does map(&:name) mean in Ruby? I was watching a railscast and
Possible Duplicate: Does anyone beside me just NOT get ASP.NET MVC? I dont know
Possible Duplicate: How does one escape characters in Delphi string In Delphi a string
Possible Duplicate: What is the “??” operator for? What does the ?? notation mean
Possible Duplicate: What algorithm .Net use for searching a pattern in a string? I
Possible Duplicate: Why does C# not provide the C++ style ‘friend’ keyword? I'd like
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Possible duplicates What is gcnew? What does the caret mean in C++/CLI? Difference between
Possible Duplicate: Maximum length of a std::basic_string<_CharT> string I would like to know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.