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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:36:02+00:00 2026-06-11T15:36:02+00:00

I got an exception cannot implicitly convert type ‘Microsoft.SolverFoundation.Services.Term’ to ‘bool’ at the code

  • 0

I got an exception “cannot implicitly convert type ‘Microsoft.SolverFoundation.Services.Term’ to ‘bool'” at the code below, how should I solve it?

Term a=null;
            if(a==null)//<--this line exception
            {

            }

Below is the snap shot

enter image description here

  • 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-06-11T15:36:03+00:00Added an answer on June 11, 2026 at 3:36 pm

    The problem is that the Term class overrides the equality operator in a way that it doesn’t return bool but another Term instead: http://msdn.microsoft.com/en-us/library/ff525374%28v=vs.93%29.aspx

    I am not sure why they would do something like this, because it goes against any advice on overriding operators…

    To fix your problem, use this code instead:

    if(ReferenceEquals(a, null))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Noob Question. Stuck on the following code. Getting Default constructor cannot handle exception type
I tried code below in .NET 3.5 but got exception at line shown in
I've got exception about convert NULL to Int32. I've got a table from database
When i run the command below: 127.0.0.1:8080/solr/suggest?spellcheck.build=true I got an exception as below, anyone
I got the below Exception when i wnat to get the data from another
Why I can't create CroppedBitmap in the following code? I got an exception: The
I got runtime error exception: java.lang.ClassCastException: android.widget.TwoLineListItem cannot be cast to android.widget.TextView My Activity
I got exception when I try to publish action to facebook. Exception : {error:{message:(#3502)
I am using following datatype in my database . but I got exception as
ive got this exception. My Object looks like this: @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class ObjectDTO

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.