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

C#

 
QuestionToolStripItem visible problem Pin
Yulianto.21-Jun-08 4:56
Yulianto.21-Jun-08 4:56 
AnswerRe: ToolStripItem visible problem Pin
subai21-Jun-08 20:26
subai21-Jun-08 20:26 
QuestionAbstract classes hierarchy Pin
Metal7621-Jun-08 4:55
Metal7621-Jun-08 4:55 
AnswerRe: Abstract classes hierarchy Pin
User 665821-Jun-08 5:23
User 665821-Jun-08 5:23 
GeneralRe: Abstract classes hierarchy Pin
Metal7621-Jun-08 5:32
Metal7621-Jun-08 5:32 
GeneralRe: Abstract classes hierarchy Pin
User 665821-Jun-08 5:39
User 665821-Jun-08 5:39 
GeneralRe: Abstract classes hierarchy Pin
Mark Churchill21-Jun-08 22:02
Mark Churchill21-Jun-08 22:02 
AnswerRe: Abstract classes hierarchy Pin
Guffa21-Jun-08 5:45
Guffa21-Jun-08 5:45 
You can put (protected) constructors in the Command and Response class. The constructor in the MyCommand class will automatically call the constructor in the Command class if it's parameterless.

Additionally, you can add a constructor to the Message class that takes a value for the FieldB property. That way a Message instance can not be created without specifying a value for the property. The constructors in the Command and Response classes can call the base constructor to specify the value:
public abstract class Command : Message {

   // parameterless constructor that sets the FieldB value
   protected Command() : base(1) {}

}


Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Abstract classes hierarchy Pin
User 665821-Jun-08 5:48
User 665821-Jun-08 5:48 
GeneralRe: Abstract classes hierarchy Pin
Metal7621-Jun-08 8:51
Metal7621-Jun-08 8:51 
QuestionCrystal Report Performance Pin
Member 202517621-Jun-08 3:40
Member 202517621-Jun-08 3:40 
AnswerRe: Crystal Report Performance Pin
Paul Conrad21-Jun-08 3:46
professionalPaul Conrad21-Jun-08 3:46 
QuestionProduction Rules Pin
mymo_h21-Jun-08 3:29
mymo_h21-Jun-08 3:29 
AnswerRe: Production Rules Pin
Paul Conrad21-Jun-08 3:49
professionalPaul Conrad21-Jun-08 3:49 
GeneralRe: Production Rules Pin
mymo_h21-Jun-08 4:21
mymo_h21-Jun-08 4:21 
GeneralRe: Production Rules Pin
Paul Conrad21-Jun-08 4:39
professionalPaul Conrad21-Jun-08 4:39 
GeneralRe: Production Rules Pin
mymo_h21-Jun-08 4:41
mymo_h21-Jun-08 4:41 
GeneralRe: Production Rules Pin
User 665821-Jun-08 5:08
User 665821-Jun-08 5:08 
GeneralRe: Production Rules Pin
mymo_h21-Jun-08 5:12
mymo_h21-Jun-08 5:12 
AnswerRe: Production Rules Pin
Ashfield21-Jun-08 7:34
Ashfield21-Jun-08 7:34 
GeneralRe: Production Rules Pin
mymo_h21-Jun-08 7:45
mymo_h21-Jun-08 7:45 
QuestionOpen pdf file using c# Pin
Abdul Rahman Hamidy21-Jun-08 2:21
Abdul Rahman Hamidy21-Jun-08 2:21 
AnswerRe: Open pdf file using c# Pin
Paul Conrad21-Jun-08 3:50
professionalPaul Conrad21-Jun-08 3:50 
AnswerRe: Open pdf file using c# Pin
Luc Pattyn21-Jun-08 4:42
sitebuilderLuc Pattyn21-Jun-08 4:42 
Questionhow to export com dll(have created with c#) to .lib type library? Pin
iman_kh21-Jun-08 2:14
iman_kh21-Jun-08 2:14 

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.