Click here to Skip to main content
15,921,250 members
Home / Discussions / C#
   

C#

 
QuestionOCX Question Pin
jason_mf5-Jun-07 21:37
jason_mf5-Jun-07 21:37 
AnswerRe: OCX Question Pin
WillemM6-Jun-07 1:05
WillemM6-Jun-07 1:05 
QuestionTCP or HTTP Pin
amitcoder835-Jun-07 21:23
amitcoder835-Jun-07 21:23 
AnswerRe: TCP or HTTP Pin
Manoj Kumar Rai5-Jun-07 21:33
professionalManoj Kumar Rai5-Jun-07 21:33 
GeneralRe: TCP or HTTP Pin
amitcoder835-Jun-07 21:48
amitcoder835-Jun-07 21:48 
GeneralRe: TCP or HTTP Pin
originSH5-Jun-07 22:24
originSH5-Jun-07 22:24 
AnswerRe: TCP or HTTP Pin
leppie6-Jun-07 3:33
leppie6-Jun-07 3:33 
QuestionRegisterhotkey API example in C# Pin
crash8935-Jun-07 21:18
crash8935-Jun-07 21:18 
AnswerRe: Registerhotkey API example in C# Pin
Giorgi Dalakishvili5-Jun-07 21:29
mentorGiorgi Dalakishvili5-Jun-07 21:29 
GeneralRe: Registerhotkey API example in C# Pin
crash8935-Jun-07 21:33
crash8935-Jun-07 21:33 
GeneralRe: Registerhotkey API example in C# Pin
Giorgi Dalakishvili5-Jun-07 21:36
mentorGiorgi Dalakishvili5-Jun-07 21:36 
QuestionCopying picture box Pin
Muammar©5-Jun-07 21:13
Muammar©5-Jun-07 21:13 
AnswerRe: Copying picture box Pin
Martin#5-Jun-07 21:34
Martin#5-Jun-07 21:34 
GeneralRe: Copying picture box Pin
Muammar©5-Jun-07 22:19
Muammar©5-Jun-07 22:19 
AnswerRe: Copying picture box Pin
Seishin#5-Jun-07 21:58
Seishin#5-Jun-07 21:58 
GeneralRe: Copying picture box Pin
Muammar©5-Jun-07 22:19
Muammar©5-Jun-07 22:19 
QuestionA typical case about interfaces [modified] Pin
amitcoder835-Jun-07 20:35
amitcoder835-Jun-07 20:35 
the following code is in C#

I have 2 interfaces

public interface Interface1
{
string ReturnString1();
}
public interface Interface2
{
string ReturnString1();
}

now i implement both the interfaces in a single class

Class A:Interface1,Interface2
{
}

now according to my searchings i found that we can implement both the interfaces in the following manner

Class A:Interface1,Interface2
{
public string Interface1.ReturnString1()
{
return "Interface1.ReturnString1";
}
public string Interface2.ReturnString1()
{
return "Interface2.ReturnString1";
}
}

but on compiling it is giving an error:"the modifier public is not valid for this item"

after i remove public and then i compile the code, it compiles successfully
but i'm not able to access these methods by creating an object of the class.


Can anyone solve this problem

Amit More (CMC)


-- modified at 3:01 Wednesday 6th June, 2007

Amit More (CMC)
AnswerRe: A typical case about interfaces Pin
Christian Graus5-Jun-07 20:50
protectorChristian Graus5-Jun-07 20:50 
GeneralRe: A typical case about interfaces Pin
Manoj Kumar Rai5-Jun-07 21:01
professionalManoj Kumar Rai5-Jun-07 21:01 
GeneralRe: A typical case about interfaces Pin
originSH5-Jun-07 22:27
originSH5-Jun-07 22:27 
GeneralRe: A typical case about interfaces Pin
originSH5-Jun-07 22:30
originSH5-Jun-07 22:30 
AnswerRe: A typical case about interfaces Pin
Manoj Kumar Rai5-Jun-07 21:00
professionalManoj Kumar Rai5-Jun-07 21:00 
GeneralRe: A typical case about interfaces [modified] Pin
amitcoder835-Jun-07 21:05
amitcoder835-Jun-07 21:05 
GeneralRe: A typical case about interfaces Pin
Manoj Kumar Rai5-Jun-07 21:10
professionalManoj Kumar Rai5-Jun-07 21:10 
GeneralRe: A typical case about interfaces Pin
amitcoder835-Jun-07 21:16
amitcoder835-Jun-07 21:16 

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.