Yes you are right. And && and || Boolean operators in C # act as a short circuit operator . He ceases to evaluate the expression after determining its value. It stops unnecessary execution.
Therefore, return method1() && method2() && method3(); - the best option in your case. If you have something in an underrated statement, say method3 in your case, this can lead to some side effects.
There is a very good language-independent article on short-circuit operators on Wikipedia .
UPDATE: In C #, if you want to use a logical operator without a short circuit, use and and | the operator.
source share