Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax question on interfaces
Message
From
19/01/2004 12:21:53
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00868001
Message ID:
00868183
Views:
14
>>So I guess I need to re-read my tutorial on interfaces!<

Well, not anymore, because you now you know how they work. <g>

~~Bonnie


>**Simply adding the interface to an already existing class does not automatically add the properties. If you create a new class from scratch, and specify then that it implements an Interface, you'll get some Intellisense that tells you to press TAB and it will fill in the Interfaces properties & methods. **
>
>Bonnie...thanks for responding. I'm a tad confused, because I thought (I guess incorrectly) that creating an interface precluded the need to add the additional properties to each class.
>
>All I'm really doing is adding a few properties to each Winforms control that I've subclassed. I'm writing a generic binding manager, one that will examine these new properties on each control.
>
>I can certainly just add the properties to each of my subclasses, though I thought that merely specifying the interface (which has the new properties) was all I needed to do.
>
>So I guess I need to re-read my tutorial on interfaces!
>
>Thanks,
>Kevin
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform