In C#, we can speed up typing of the "for" statement by using this:
Just type:
1. for
2. Press Tab twice.
3. Write the variable name in "i".
4. Press Tab.
5. Write the variable name in "length".
That's it! No need to type everything. Just fill-in the blanks.
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.
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.
Subscribe to:
Posts (Atom)