This question already has an answer here:
do both sides on a C# if-or-statement always get executed?
Example: if (Method1() || Method2())
It would make sense that both methods get executed when the first one returns false, but does the second one even get executed when the first one returns true?
Aucun commentaire:
Enregistrer un commentaire