Click here to Skip to main content
16,004,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: Dispose doubts Pin
Martin#30-May-07 10:17
Martin#30-May-07 10:17 
AnswerRe: Dispose doubts Pin
Jimmanuel30-May-07 6:30
Jimmanuel30-May-07 6:30 
Questionwant to make a folder sharable programatically Pin
devesh_code30-May-07 4:12
devesh_code30-May-07 4:12 
AnswerRe: want to make a folder sharable programatically Pin
Manoj Kumar Rai30-May-07 4:31
professionalManoj Kumar Rai30-May-07 4:31 
QuestionAdvice Pin
wwwlicious30-May-07 4:03
wwwlicious30-May-07 4:03 
AnswerRe: Advice [modified] Pin
Not Active30-May-07 4:12
mentorNot Active30-May-07 4:12 
GeneralRe: Advice Pin
wwwlicious30-May-07 4:32
wwwlicious30-May-07 4:32 
GeneralRe: Advice Pin
Manoj Kumar Rai30-May-07 4:48
professionalManoj Kumar Rai30-May-07 4:48 
wwwlicious wrote:
MyProperty oProperty = new MyProperty(2);


You are creating a instance of the base class here. You create the instance of the specific type and use it. Also, when you will create a instance of the specifix type it will contain the type information.

i.e.
MyRangeProperty rProp = new MyRangeProperty();
rProp.StartVale = 1;
rProp.EndValue = 100;
rProp.type = Number //See here you need to set the type while creating instance.

Now, the instance of MyRangeProperty have all the info. Even if you cast it to base class, you will be able to access the "type" info, to decide what type of properties has been stored there.

Manoj
Never Gives up

QuestionRe: Advice Pin
wwwlicious30-May-07 5:03
wwwlicious30-May-07 5:03 
AnswerRe: Advice Pin
Manoj Kumar Rai30-May-07 5:19
professionalManoj Kumar Rai30-May-07 5:19 
GeneralRe: Advice Pin
wwwlicious30-May-07 6:00
wwwlicious30-May-07 6:00 
GeneralRe: Advice Pin
Not Active30-May-07 9:37
mentorNot Active30-May-07 9:37 
GeneralRe: Advice Pin
wwwlicious30-May-07 22:37
wwwlicious30-May-07 22:37 
GeneralRe: Advice Pin
Not Active31-May-07 2:06
mentorNot Active31-May-07 2:06 
AnswerRe: Advice Pin
wwwlicious31-May-07 2:58
wwwlicious31-May-07 2:58 
Questionreading elements of xml Pin
saqib8230-May-07 3:22
saqib8230-May-07 3:22 
AnswerRe: reading elements of xml Pin
Affan Toor30-May-07 3:45
Affan Toor30-May-07 3:45 
QuestionHow to maintain the scrolled view of the datagridview after rebinding? Pin
Affan Toor30-May-07 3:21
Affan Toor30-May-07 3:21 
QuestionHow to get MS Exchange - Public Folder - Calendar entries Pin
Markus_P_online30-May-07 3:08
Markus_P_online30-May-07 3:08 
Questionmovie control Pin
Ravikumar Patra30-May-07 2:42
professionalRavikumar Patra30-May-07 2:42 
Questionreading xml string Pin
saqib8230-May-07 2:42
saqib8230-May-07 2:42 
AnswerRe: reading xml string Pin
JoeSharp30-May-07 3:00
JoeSharp30-May-07 3:00 
QuestionHow to get the input data in textbox? Pin
C#Coudou30-May-07 2:41
C#Coudou30-May-07 2:41 
AnswerRe: How to get the input data in textbox? Pin
Giorgi Dalakishvili30-May-07 2:45
mentorGiorgi Dalakishvili30-May-07 2:45 
AnswerRe: How to get the input data in textbox? Pin
Adeel Chaudhry30-May-07 2:48
Adeel Chaudhry30-May-07 2:48 

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.