I am trying to implement following thing. I need to return true if any of the button is found to be changed. I don't want any more looping.
Since ForEach is looking for Action Type Delegate. So is it possible to return bool value from within a deletage
public bool AreSettingChanged()
{
objRpmButtonHolder.RpmButtonCollection.ForEach(btn
=> {
if (btn.IsChanged)
return true;
});
return true;
}