Click here to Skip to main content
15,919,028 members
Home / Discussions / C#
   

C#

 
Questionoledbcommandbuilder [modified] Pin
ginji2012-Jun-08 21:19
ginji2012-Jun-08 21:19 
Questionmaster page in asp.net Pin
Bhim Prakash Singh12-Jun-08 20:25
Bhim Prakash Singh12-Jun-08 20:25 
QuestionMove Files in FTP Pin
Tiger45612-Jun-08 20:04
Tiger45612-Jun-08 20:04 
AnswerRe: Move Files in FTP Pin
Bhim Prakash Singh12-Jun-08 20:34
Bhim Prakash Singh12-Jun-08 20:34 
GeneralRe: Move Files in FTP Pin
Tiger45613-Jun-08 0:13
Tiger45613-Jun-08 0:13 
GeneralRe: Move Files in FTP Pin
Member 404210320-Jan-10 23:02
Member 404210320-Jan-10 23:02 
QuestionHow to send PJL Command to USB connected Printer in c# [modified] PinPopular
Rajesh_K_Sharma12-Jun-08 19:22
Rajesh_K_Sharma12-Jun-08 19:22 
QuestionReg. Interface Pin
Siva1912-Jun-08 18:34
Siva1912-Jun-08 18:34 
I have a Following Interface.

public interface IToString
{
string MyString();

}

I have Implement that interface in the following class
public class Implementor : IToString
{

#region IToString Members

public string MyString()
{
return "Siva";
}

#endregion
}

In Another class i am calling the interface method Mystring()
My Question is..
Using the object instance we can directly call the method MyString
Like ..
Implementor dd = new Implementor();
MessageBox.Show(dd.MyString());

But Why we use interface instance and we call that method..
Like..
IToString Reference1 = new Implementor();
MessageBox.Show(Reference1.MyString());

What is advantage using interface here?


public partial class Form1 : Form
{

private void button1_Click(object sender, EventArgs e)
{
IToString Reference1 = new Implementor();
MessageBox.Show(Reference1.MyString());

Implementor dd = new Implementor();
MessageBox.Show(dd.MyString());
}
AnswerRe: Reg. Interface Pin
Christian Graus12-Jun-08 18:39
protectorChristian Graus12-Jun-08 18:39 
GeneralRe: Reg. Interface Pin
Siva1912-Jun-08 19:08
Siva1912-Jun-08 19:08 
GeneralRe: Reg. Interface Pin
Christian Graus12-Jun-08 19:31
protectorChristian Graus12-Jun-08 19:31 
QuestionCurrent Function/Property Name Using Reflection Pin
Shajeel12-Jun-08 18:01
Shajeel12-Jun-08 18:01 
AnswerRe: Current Function/Property Name Using Reflection Pin
Roger Alsing12-Jun-08 20:20
Roger Alsing12-Jun-08 20:20 
QuestionRe: Current Function/Property Name Using Reflection Pin
Shajeel12-Jun-08 20:22
Shajeel12-Jun-08 20:22 
AnswerRe: Current Function/Property Name Using Reflection Pin
Roger Alsing12-Jun-08 20:37
Roger Alsing12-Jun-08 20:37 
GeneralRe: Current Function/Property Name Using Reflection Pin
Shajeel12-Jun-08 22:31
Shajeel12-Jun-08 22:31 
QuestionCan Resharper find unused public members??? Pin
Member 391904912-Jun-08 14:47
Member 391904912-Jun-08 14:47 
AnswerRe: Can Resharper find unused public members??? Pin
Christian Graus12-Jun-08 15:30
protectorChristian Graus12-Jun-08 15:30 
GeneralRe: Can Resharper find unused public members??? Pin
Member 391904913-Jun-08 0:43
Member 391904913-Jun-08 0:43 
AnswerRe: Can Resharper find unused public members??? Pin
PIEBALDconsult12-Jun-08 17:04
mvePIEBALDconsult12-Jun-08 17:04 
GeneralRe: Can Resharper find unused public members??? Pin
Christian Graus12-Jun-08 17:18
protectorChristian Graus12-Jun-08 17:18 
AnswerRe: Can Resharper find unused public members??? Pin
Mark Churchill12-Jun-08 18:24
Mark Churchill12-Jun-08 18:24 
QuestionSending keystrokes to a process with no window? Pin
TomNZ12-Jun-08 14:30
TomNZ12-Jun-08 14:30 
QuestionGlobal Boolean Variable Pin
Illegal Operation12-Jun-08 13:37
Illegal Operation12-Jun-08 13:37 
AnswerRe: Global Boolean Variable Pin
Anthony Mushrow12-Jun-08 14:02
professionalAnthony Mushrow12-Jun-08 14:02 

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.