Visual studio 2010 Switch statement generation by enum -
Is there a way to create switch statements by enum?
For example if I have Enum and I have the method with the parameter enum, then I need the code switch statement for each case, but there is a way to generate enum this switch statement is?
If I have many other enumues, if my energy is wide range and if I have 10-100 ways that make those cases switch coding with different criteria, hell
Maybe it's a good idea to make a T4 template, yet I'm happy to hear some suggestions about ang switch generation.
Without additional software such as
view To complete that snippet the studio already does, type the switch, tab, type the name of the anonymity, and you will get the case statement auto-granulated.
Comments
Post a Comment