Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax question on interfaces
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00868001
Message ID:
00868356
Views:
11
>well, yes and no ;)
>
>I went back and read the two pieces of documentation that I have on them. What I'm a bit hazy on is the benefit that custom interfaces provide. I'm sure they do, but I'm just not quite 'getting it'. After a year and a half, I still find myself in 'learning mode' with .NET!

In addition to what Bonnie said there's also the compiler enforcement of the interface, which is very important. So if you create a new control, the compiler will tell you what methods and properties you need to implement. For databinding you generally just cut and paste the logic, which unfortunately is the only way since there's no multiple inheritance.

In Windows Forms you could look into Extender properties which would allow you to add properties nad methods to existing control and only write the code once. But this is relatively slow and inefficient and definitely not a good choice for something as commonly referenced as databinding controls.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform