Hello, I have a List(of AClass) that contains a few dozen items. I was wondering if there was an easy way to set the properties of all of the items in the list to a particular value, i.e.
MyList.SetAll(enabled, true)
Where something like this would set all of the items "enabled" property to true.
Is there some built in way to do this? Can I use Linq?
MyList.SetAll(enabled, true)
Where something like this would set all of the items "enabled" property to true.
Is there some built in way to do this? Can I use Linq?