Alternative constructions in c# to do things that may look clumsy in regular code