List<TextBox> l = Controls.OfType<TextBox>().ToList(); foreach (TextBox c in l) { c.CharacterCasing = CharacterCasing.Upper; }then No, I don't see the point. It's creating a List of TextBoxes needlessly - better just to use the IEnumerable returned by 'OfType'
foreach (TextBox c in parentForm.Controls.OfType< TextBox>()) >>> { >>> c.CharacterCasing = CharacterCasing.Upper; >>> }Good. I'd forgotten about OfType(). Don't know if it's any faster because, internally, I think it does a 'is X' anyway ?