Hi,
What is the main advantage of INTERFACES and when to use the INTERFACES in my project.
please suggest.
thanks inadvance
Regards,
Balu Reddy K
Interfaces
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Apr 17, 2012, 12:57 AM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Apr 17, 2012, 12:59 AM EDT
Take advantage of interfaces to make your code cleaner and more reusable. A simple example of where interfaces can be applied is in populating UI controls. How many ListBox controls do you have to populate in your web application?
One solution is to write the code to populate each ListBox individually in the Page_Load method. Another method could be to create a helper method that takes an array of data items and a ListBox as parameters, populating the ListBox from the array of data
Advantages of Interface:
http://msdn.microsoft.com/en-us/library/3b5b8ezk(v=vs.80).aspx
when to use:
http://msdn.microsoft.com/en-us/library/3b5b8ezk(v=vs.80).aspx