in C# what is the approach in order to return a single boolean result based on 2 (boolean) methods?
i was using this approach on the assumption that unless both methods return true then the returned value will be false, but it always returns true even though the first method is always set to return false in the code.
Then view the result at Output console(Ctrl+Alt+o) or View->Output;
With regards,Angelina Jolie
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
331 Posts
combining results of 2 booleans into single result
Oct 25, 2017 03:01 PM|mark-1961|LINK
in C# what is the approach in order to return a single boolean result based on 2 (boolean) methods?
i was using this approach on the assumption that unless both methods return true then the returned value will be false, but it always returns true even though the first method is always set to return false in the code.
All-Star
52101 Points
23237 Posts
Re: combining results of 2 booleans into single result
Oct 25, 2017 05:30 PM|mgebhard|LINK
You must have an issue elsewhere in the code. This code
produces these results
Reference docs
https://msdn.microsoft.com/en-us/library/c6s3h5a7.aspx
Contributor
5290 Points
2307 Posts
Re: combining results of 2 booleans into single result
Oct 26, 2017 07:34 AM|AngelinaJolie|LINK
Hi mark-1961,
Good Day!
I suggest that you could record result after running;
Then view the result at Output console(Ctrl+Alt+o) or View->Output;
With regards,Angelina Jolie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.