Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Structs or Classes Pin
big_trev2-Oct-05 0:52
big_trev2-Oct-05 0:52 
AnswerRe: Structs or Classes Pin
Tim Smith1-Oct-05 16:36
Tim Smith1-Oct-05 16:36 
GeneralRe: Structs or Classes Pin
leppie2-Oct-05 3:20
leppie2-Oct-05 3:20 
GeneralRe: Structs or Classes Pin
Tim Smith3-Oct-05 3:38
Tim Smith3-Oct-05 3:38 
GeneralRe: Structs or Classes Pin
leppie3-Oct-05 3:50
leppie3-Oct-05 3:50 
QuestionInterface members accesibility Pin
Heinz_30-Sep-05 17:44
Heinz_30-Sep-05 17:44 
AnswerRe: Interface members accesibility Pin
Colin Angus Mackay1-Oct-05 0:53
Colin Angus Mackay1-Oct-05 0:53 
AnswerRe: Interface members accesibility Pin
Robert Rohde1-Oct-05 4:45
Robert Rohde1-Oct-05 4:45 
First of all your code won't compile Smile | :)

And yes all members of an interface must be public visible to everyone using this interface. But you can restrict them ONLY to explicit interface users:

public interface ITest
{
void TestA();
}

public class Class1 : ITest
{
void ITest.TestA() {}
}

static void Main() 
{
Class1 c = new Class1();
c.TestA(); //gives compile error
ITest t = c;
t.TestA(); //works perfectly well
}

QuestionMonth Calendar Pin
kenexcelon30-Sep-05 15:33
kenexcelon30-Sep-05 15:33 
AnswerRe: Month Calendar Pin
g00fyman1-Oct-05 1:36
g00fyman1-Oct-05 1:36 
QuestionAutoPlay handling in C# (IQueryCancelAutoPlay) Pin
Member 83101330-Sep-05 15:12
Member 83101330-Sep-05 15:12 
QuestionCan't get variables into Watch1 in Debug Pin
Anonymous30-Sep-05 14:58
Anonymous30-Sep-05 14:58 
AnswerRe: Can't get variables into Watch1 in Debug Pin
Guffa30-Sep-05 23:42
Guffa30-Sep-05 23:42 
QuestionInterface Icons Pin
Anonymous30-Sep-05 14:12
Anonymous30-Sep-05 14:12 
QuestionHow to write a user defined windows control??? Pin
Ming Luo30-Sep-05 11:48
Ming Luo30-Sep-05 11:48 
AnswerRe: How to write a user defined windows control??? Pin
Jon Rista30-Sep-05 12:23
Jon Rista30-Sep-05 12:23 
GeneralRe: How to write a user defined windows control??? Pin
Ming Luo30-Sep-05 23:55
Ming Luo30-Sep-05 23:55 
GeneralRe: How to write a user defined windows control??? Pin
Jon Rista1-Oct-05 8:08
Jon Rista1-Oct-05 8:08 
AnswerRe: How to write a user defined windows control??? Pin
Heinz_30-Sep-05 17:48
Heinz_30-Sep-05 17:48 
GeneralRe: How to write a user defined windows control??? Pin
Jon Rista1-Oct-05 8:10
Jon Rista1-Oct-05 8:10 
QuestionForm2 DataAdapter/DataSet Pin
rich_wenger30-Sep-05 10:28
rich_wenger30-Sep-05 10:28 
Questionpassing record between forms Pin
mpw_30-Sep-05 9:37
mpw_30-Sep-05 9:37 
AnswerRe: passing record between forms Pin
Robert Rohde30-Sep-05 9:51
Robert Rohde30-Sep-05 9:51 
GeneralRe: passing record between forms Pin
mpw_30-Sep-05 10:24
mpw_30-Sep-05 10:24 
QuestionWhen to use Int32.Parse(... vs. Convert.ToInt32(... Pin
...---...30-Sep-05 9:20
...---...30-Sep-05 9:20 

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.