Tuesday, March 10, 2015

Speeding Up "foreach" Statement

In C#, there is a way to speed-up writing the "foreach" statement.

Just write :
     1. foreach
     2. Press Tab twice.
     3. Write the datatype in "var".
     4. Press Tab.
     5. Write the variable name in "item".
     6. Press Tab.
     7. Write the variable name in "collection".

Plain and simple.

No comments: