if b == c then write Boolean in a
is that possible to write in c#.net?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Yes, but why didn’t you just try it? And not only is it possible to write it, but it’s actually legal C#. It will assign the value of the boolean expression
b == cto the variablea, which I’m assuming you declared, implicitly or explicitly, asbool. Stylistically, I prefer to seeor
or
I think these are easier to read than without the parentheses.