Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
QuestionGetting the parent window of the ToolStripMenuItem Pin
zaboboa11-Apr-06 6:06
zaboboa11-Apr-06 6:06 
AnswerRe: Getting the parent window of the ToolStripMenuItem Pin
_Bao_11-Apr-06 6:28
_Bao_11-Apr-06 6:28 
QuestionAccessing Outlook in C# Pin
ChuckBurris11-Apr-06 5:42
ChuckBurris11-Apr-06 5:42 
QuestionPassing objects as parameters Pin
adol_w11-Apr-06 5:11
adol_w11-Apr-06 5:11 
AnswerRe: Passing objects as parameters Pin
J4amieC11-Apr-06 5:16
J4amieC11-Apr-06 5:16 
QuestionRe: Passing objects as parameters Pin
adol_w11-Apr-06 5:40
adol_w11-Apr-06 5:40 
AnswerRe: Passing objects as parameters Pin
majed sultan11-Apr-06 6:25
majed sultan11-Apr-06 6:25 
GeneralRe: Passing objects as parameters Pin
Leyu11-Apr-06 6:57
Leyu11-Apr-06 6:57 
<br />
<br />
public class BaseWriter<br />
{<br />
public virtual Write()<br />
{<br />
//Write What u want here<br />
}<br />
}<br />
<br />
public class FileWriter:BaseWriter<br />
{<br />
public override Write()<br />
{<br />
//Write to a file here<br />
}<br />
}<br />
<br />
public class XMLWriter:BaseWriter<br />
{<br />
public override Write()<br />
{<br />
//Write to XML file<br />
}<br />
}<br />
<br />
public class MainApp<br />
{<br />
<br />
public static void Main()<br />
{<br />
BaseWriter baseWriter1=new FileWriter(); <br />
BaseWriter baseWriter2=new XMLWriter();<br />
<br />
Writer(baseWriter1);<br />
Writer(baseWriter2);<br />
<br />
}<br />
<br />
public static void Writer(BaseWriter writer)<br />
{<br />
writer.Write();   //Writes for the correct writer<br />
}<br />
<br />
}<br />
<br />

AnswerRe: Passing objects as parameters Pin
Stefan Troschuetz11-Apr-06 7:12
Stefan Troschuetz11-Apr-06 7:12 
GeneralRe: Passing objects as parameters Pin
adol_w11-Apr-06 8:43
adol_w11-Apr-06 8:43 
QuestionDateTime Pin
Brendan Vogt11-Apr-06 4:33
Brendan Vogt11-Apr-06 4:33 
AnswerRe: DateTime Pin
J4amieC11-Apr-06 4:35
J4amieC11-Apr-06 4:35 
GeneralRe: DateTime Pin
Brendan Vogt11-Apr-06 4:44
Brendan Vogt11-Apr-06 4:44 
AnswerRe: DateTime Pin
darkelv11-Apr-06 5:17
darkelv11-Apr-06 5:17 
AnswerRe: DateTime Pin
Rob Philpott11-Apr-06 6:45
Rob Philpott11-Apr-06 6:45 
QuestionRe: DateTime Pin
Brendan Vogt11-Apr-06 20:40
Brendan Vogt11-Apr-06 20:40 
AnswerRe: DateTime Pin
Rob Philpott11-Apr-06 20:46
Rob Philpott11-Apr-06 20:46 
QuestionDesign Pattern Pin
sridharmuthupillai11-Apr-06 4:10
sridharmuthupillai11-Apr-06 4:10 
AnswerRe: Design Pattern Pin
Nick Parker11-Apr-06 4:58
protectorNick Parker11-Apr-06 4:58 
QuestionChanging refresh rate Pin
Da_Masca11-Apr-06 4:00
Da_Masca11-Apr-06 4:00 
QuestionGUI as Visual-Studio-IDE Pin
Tomerland11-Apr-06 3:29
Tomerland11-Apr-06 3:29 
AnswerRe: GUI as Visual-Studio-IDE Pin
-Dy11-Apr-06 4:05
-Dy11-Apr-06 4:05 
GeneralRe: GUI as Visual-Studio-IDE Pin
Tomerland11-Apr-06 9:50
Tomerland11-Apr-06 9:50 
AnswerRe: GUI as Visual-Studio-IDE Pin
Luis Alonso Ramos11-Apr-06 7:36
Luis Alonso Ramos11-Apr-06 7:36 
QuestionDispose method Help needed Pin
agmb11-Apr-06 3:20
agmb11-Apr-06 3: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.