Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deep copy Hashtable Pin
RickardB12-Feb-04 19:06
RickardB12-Feb-04 19:06 
GeneralRe: Deep copy Hashtable Pin
Heath Stewart13-Feb-04 3:31
protectorHeath Stewart13-Feb-04 3:31 
GeneralListing the tables of MS Access (Error is This) Pin
Daminda11-Feb-04 17:14
Daminda11-Feb-04 17:14 
GeneralRe: Listing the tables of MS Access (Error is This) Pin
krisp11-Feb-04 19:34
krisp11-Feb-04 19:34 
GeneralWhile we're on the subject of language constructs Pin
Tom Clement11-Feb-04 16:27
professionalTom Clement11-Feb-04 16:27 
GeneralRe: While we're on the subject of language constructs Pin
krisp11-Feb-04 16:47
krisp11-Feb-04 16:47 
GeneralRe: While we're on the subject of language constructs Pin
Kentamanos11-Feb-04 16:54
Kentamanos11-Feb-04 16:54 
GeneralRe: While we're on the subject of language constructs Pin
Tom Clement11-Feb-04 17:07
professionalTom Clement11-Feb-04 17:07 
Thanks for the reply Kentamanos (and krisp). Both solutions are reasonable. I actually used krisps, since I had to fail if the control did not implement the interface. The discussion is really a theoretical one.

My point was that I couldn't just derive from Control and include the interface methods, since, for example, I'd need to handle controls derived from both (e.g.) ListView and TreeView. Since I can't insert my new control in the object hierarchy above these two controls, given the single inheritance nature of things in C# I couldn't see the kind of solution I'd really like, which is the ability to declare a Type consisting of a class plus an interface.

I guess there could be a restricted interface construct that would provide something more than what C# currently provides but that was less then full multiple interitance. This would be something like:

interface IMyInterface RestrictedTo <objecttype1>, <objecttype2>

Oh well... Smile | :)
Tom
GeneralRe: While we're on the subject of language constructs Pin
Werdna13-Feb-04 12:23
Werdna13-Feb-04 12:23 
GeneralStoring RichText data in Access Database Field Pin
bjulien11-Feb-04 15:51
bjulien11-Feb-04 15:51 
GeneralRe: Storing RichText data in Access Database Field Pin
John Kuhn11-Feb-04 16:29
John Kuhn11-Feb-04 16:29 
GeneralRe: Storing RichText data in Access Database Field Pin
Heath Stewart12-Feb-04 3:35
protectorHeath Stewart12-Feb-04 3:35 
GeneralRe: Storing RichText data in Access Database Field Pin
bjulien12-Feb-04 8:03
bjulien12-Feb-04 8:03 
GeneralRe: Storing RichText data in Access Database Field Pin
Heath Stewart12-Feb-04 8:36
protectorHeath Stewart12-Feb-04 8:36 
GeneralRe: Storing RichText data in Access Database Field Pin
bjulien12-Feb-04 10:25
bjulien12-Feb-04 10:25 
GeneralExplicit abstract methods. Pin
krisp11-Feb-04 15:29
krisp11-Feb-04 15:29 
GeneralRe: Explicit abstract methods. Pin
Kentamanos11-Feb-04 15:52
Kentamanos11-Feb-04 15:52 
GeneralRe: Explicit abstract methods. Pin
krisp11-Feb-04 16:21
krisp11-Feb-04 16:21 
GeneralRe: Explicit abstract methods. Pin
Kentamanos11-Feb-04 16:45
Kentamanos11-Feb-04 16:45 
GeneralRe: Explicit abstract methods. Pin
krisp11-Feb-04 17:06
krisp11-Feb-04 17:06 
GeneralRe: Explicit abstract methods. Pin
Kentamanos11-Feb-04 17:41
Kentamanos11-Feb-04 17:41 
GeneralFile Backup Pin
Demo36011-Feb-04 14:50
Demo36011-Feb-04 14:50 
GeneralRe: File Backup Pin
Heath Stewart12-Feb-04 3:31
protectorHeath Stewart12-Feb-04 3:31 
GeneralRe: File Backup Pin
Anonymous16-Feb-04 5:53
Anonymous16-Feb-04 5:53 
GeneralRe: File Backup Pin
Demo36016-Feb-04 7:33
Demo36016-Feb-04 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.