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

C#

 
AnswerRe: MDI Parent Pin
Gareth H9-Aug-08 21:28
Gareth H9-Aug-08 21:28 
Questionright click for multi shapes on picturBox Pin
Member 47164359-Aug-08 7:55
Member 47164359-Aug-08 7:55 
AnswerRe: right click for multi shapes on picturBox Pin
Christian Graus9-Aug-08 16:24
protectorChristian Graus9-Aug-08 16:24 
QuestionHow to access the explicit interface implementation of a base class from a dervied class ? Pin
MarkPhB9-Aug-08 6:05
MarkPhB9-Aug-08 6:05 
AnswerRe: How to access the explicit interface implementation of a base class from a dervied class ? Pin
Frank Horn9-Aug-08 6:36
Frank Horn9-Aug-08 6:36 
GeneralRe: How to access the explicit interface implementation of a base class from a dervied class ? Pin
MarkPhB9-Aug-08 7:07
MarkPhB9-Aug-08 7:07 
GeneralRe: How to access the explicit interface implementation of a base class from a dervied class ? Pin
J4amieC9-Aug-08 7:41
J4amieC9-Aug-08 7:41 
AnswerRe: How to access the explicit interface implementation of a base class from a dervied class ? Pin
J4amieC9-Aug-08 7:48
J4amieC9-Aug-08 7:48 
As ive said above its not entirely clear what you are trying to achieve. However, you can access that explicit interface in the derived class without also implementing the interface.

public interface ISomeInterface{
    void SomeMethod();
}

public class BaseClass : ISomeInterface {
    void SomeInterface.SomeMethode(){        
        ...    
    }
}

public class DerivedClass : BaseClass{
   void AnotherMethod(){
      //This wont work, its implemented explicitly
      //this.SomeMethod()
      //This will work
      ((ISomeInterface)this).SomeMethod();
   }
}



Incidentally if you change BaseClass too the following the commented out line above will work. This is implementing the interface implicitly


public class BaseClass : ISomeInterface {
    public void SomeMethode(){        
        ...    
    }
}

AnswerRe: How to access the explicit interface implementation of a base class from a dervied class ? Pin
DaveyM699-Aug-08 8:22
professionalDaveyM699-Aug-08 8:22 
Questionmulti threading problem??? Pin
mr.mohsen9-Aug-08 6:02
mr.mohsen9-Aug-08 6:02 
AnswerRe: multi threading problem??? Pin
Frank Horn9-Aug-08 6:38
Frank Horn9-Aug-08 6:38 
GeneralRe: multi threading problem??? Pin
mr.mohsen9-Aug-08 11:20
mr.mohsen9-Aug-08 11:20 
GeneralRe: multi threading problem??? Pin
Mark Salsbery9-Aug-08 11:24
Mark Salsbery9-Aug-08 11:24 
GeneralRe: multi threading problem??? Pin
Mycroft Holmes9-Aug-08 14:11
professionalMycroft Holmes9-Aug-08 14:11 
QuestionGetting all Forms in the project Pin
mrcooll9-Aug-08 5:48
mrcooll9-Aug-08 5:48 
AnswerRe: Getting all Forms in the project Pin
Wendelius9-Aug-08 6:00
mentorWendelius9-Aug-08 6:00 
QuestionHow to get a particular number of bytes or a null terminated string from serial port? [modified] Pin
CelestialCoder9-Aug-08 4:42
CelestialCoder9-Aug-08 4:42 
AnswerRe: How to get a particular number of bytes or a null terminated string from serial port? Pin
Searril9-Aug-08 5:00
Searril9-Aug-08 5:00 
GeneralRe: How to get a particular number of bytes or a null terminated string from serial port? Pin
CelestialCoder9-Aug-08 5:06
CelestialCoder9-Aug-08 5:06 
GeneralRe: How to get a particular number of bytes or a null terminated string from serial port? Pin
CelestialCoder12-Aug-08 1:56
CelestialCoder12-Aug-08 1:56 
GeneralRe: How to get a particular number of bytes or a null terminated string from serial port? Pin
CelestialCoder13-Aug-08 17:36
CelestialCoder13-Aug-08 17:36 
QuestionC# windows application deployment error Pin
vishnukamath9-Aug-08 3:40
vishnukamath9-Aug-08 3:40 
QuestionCounting number of characters Pin
Zafar Sultan9-Aug-08 3:35
Zafar Sultan9-Aug-08 3:35 
AnswerRe: Counting number of characters Pin
User 66589-Aug-08 4:43
User 66589-Aug-08 4:43 
QuestionMobile programming Pin
ali zaidi9-Aug-08 3:25
ali zaidi9-Aug-08 3:25 

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.