المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : code repeat



C# Programming
06-18-2013, 03:29 PM
hey all, Sorry its me again. This time I have a question that I think is fairly general. I am using code that is almost exactly the same over and over again within a controller.

My question was, is there a way to store this code somewhere within the project? to repeat it in the place that i need in code
in c# windows application??

e.g:
like include PHP

all that i need is to repeat specific code in my function but in different ********s


any ideas???