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

  • SEARCH
  • Home
  • 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 778929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:50:46+00:00 2026-05-14T19:50:46+00:00

In VB.net the ANDALSO and ORELSE keywords should basically always be prefered over the

  • 0

In VB.net the ANDALSO and ORELSE keywords should basically always be prefered over the AND and OR keywords.
What is the easiest way to disable the AND and OR keywords?
I’m thinking FXCop (maybe somebody has already written this rule).
Maybe just some setting in VS (we’re currently using 2008 and are moving to 2010 end of the summer)

I’m open for all suggestions.

  • 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-14T19:50:47+00:00Added an answer on May 14, 2026 at 7:50 pm

    Hehe, I think the solution you are looking for is called C#.

    But seriously, using VB, you could go with some kind of blanket policy enforcement using FXCop or similar code analysis tools.

    But when it comes to such a basic and fundamental feature as the language’s core logic operators, you probably shouldn’t mess with them even through policy enforcement. This is a training issue, and would be best addressed by training.

    Detecting the accidental mis-use or unintentional use of these operators is best handled via unit testing or peer review. Basic operator behaviors are Chapter 1 stuff in any beginner’s guide to VB, and no programmer should be working on real production code if they haven’t mastered the basic syntax and operators of the language yet.

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

Sidebar

Related Questions

In VB.NET, what is the difference between And and AndAlso ? Which should I
I know that AndAlso is equivalent to && and OrElse is equivalent to ||
In VB.NET, I can quickly type And/AndAlso on the keyboard. In C#, I'm currently
.NET we have primitive datatypes like int and value types like struct. And also
I have implimented the AnitforgeryToken with my asp.net MVC forms, and also added the
.Net assemblies have pdb files for debugging. The PDB file points to the exact
.NET 4.0, Windows 7, VS 2010: Trying to install 64-bit service using the Setup
net I am trying to take a value from a previous form typically in
.Net contains a nice control called DocumentViewer . it also offers a subcontrol for
net website, I would like to add button by which user can view the

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.