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 6361071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:43:43+00:00 2026-05-24T23:43:43+00:00

IsNot Nothing is very common, but it’s a double negative =o I’d like to

  • 0

IsNot Nothing is very common, but it’s a double negative =o

I’d like to use Exists instead. Is there someway I can add a keyword to my VB vocab?

For now, I wrote an extension that adds _Exists() as a property to each object. I use this frequently, but I’d still prefer an actual keyword.

<HideModuleName()>
Public Module CustomExtensions

    ''' <summary>
    ''' Returns <c>True</c> if [object] is not <c>Nothing</c>; otherwise <c>False</c>.
    ''' </summary>
    <System.Runtime.CompilerServices.Extension()>
    Public Function _Exists(obj As Object) As Boolean
        Return obj IsNot Nothing
    End Function

End Module

I use Visual Studio 2010 exclusively, so if I could trick VS into converting my custom phraseology into the standard syntax, that’d work for me.

Thanks!

  • 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-24T23:43:44+00:00Added an answer on May 24, 2026 at 11:43 pm

    This answer isn’t very helpful but here goes: currently, you cannot do this.

    Future versions of VS (particularly when they release their compiler service internals and make them extensible) could allow it – although I actually doubt that they will allow new keywords to be added, as this isn’t in the interest of a compiler vendor who wants to ensure an ecosystem of compatible code.

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

Sidebar

Related Questions

I needed a String tokenizer in Haskell but there is apparently nothing already defined
Dim MyQuery = From c In xdoc.Descendants() _ Where c.Attribute(OriginY) IsNot Nothing _ Order
Is there a way to use ASP.NET in browsers that javascript is not enabled?
The basic idea is very easy. Simplified you could say... a snake like line
I have a mysql database that is currently running very slow. There are a
I have an html directory filled with very small PHP scripts that do nothing
I'm trying to create a very simple PHP CLI application that can be run
I have a very complex Flash application (think Photoshop in Flash). There is a
This is most def something very simple, but it is driving me crazy, cant
I'd like to apologize in advance, because this is not a very good question.

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.