What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-26 15:01:22
How can I do a foreach loop for an array of booleans
// The problem is not that your array is boolean, // it is that you are trying to assign value to buttonBoolean in foreach loop. It is read-only as every foreach iteration variable is // You could do this instead: public bool[] inputBool; ... Add solution