Click here to Skip to main content
15,907,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading Tree View Item from another process Pin
suguimoto19-Jun-06 0:22
suguimoto19-Jun-06 0:22 
QuestionCreating object [modified] Pin
alazer18-Jun-06 23:37
alazer18-Jun-06 23:37 
Hi i have one doubt ,for craeting an object in which this requires parent object where as parent is abstract?How it's possible?

Class Structure:

public abstract class Setting : DefinitionObject, ISerializable
{
#region Fields
// Fields
. . . . . .

#endregion

#region Construction/Finalization
// Construction/Finalization
/// <summary>Constructor.</summary>
/// <param name="parent">The parent setting.</param>
/// <param name="category">The setting category.</param>
/// <param name="strName">The setting name.</param>
public Setting(Setting parent, SettingCategory category, string strName)
{
EditMode = true; //Setting object need to be in edit mode.
m_Parent = parent;
Name = strName;
CategoryAsString = XmlSettingCategory.CategoryToXmlCategory(category);
//Setting base properties set the dirty flag to True. Therefore we have to set it back to false.
base.SetDefDirty(false);
}
}


public class CollectionSetting : Setting, ISerializable
{
#region Fields
// Fields
. . . . .
#endregion

#region Constructor / Finalization
// Constructor / Finalization
/// <summary>Constructor.</summary>
/// <param name="parent">The parent setting.</param>
/// <param name="category">The setting category.</param>
/// <param name="strName">The setting name.</param>
public CollectionSetting(Setting parent, SettingCategory category, string strName) : base(parent, category, strName)
{

}
}


CollectionSetting cSetting = new CollectionSetting(? , ?? , ???);

What i give the input to "?"Because this requires parent object but parent class is an abstract?

Please help me .....

A.Arputha Lazer.

-- modified at 5:38 Monday 19th June, 2006
GeneralRe: Creating object Pin
Colin Angus Mackay19-Jun-06 0:10
Colin Angus Mackay19-Jun-06 0:10 
AnswerRe: Creating object Pin
Colin Angus Mackay19-Jun-06 0:14
Colin Angus Mackay19-Jun-06 0:14 
AnswerRe: Creating object Pin
BoneSoft19-Jun-06 4:13
BoneSoft19-Jun-06 4:13 
GeneralRe: Creating object Pin
Colin Angus Mackay19-Jun-06 5:29
Colin Angus Mackay19-Jun-06 5:29 
GeneralRe: Creating object Pin
BoneSoft19-Jun-06 5:42
BoneSoft19-Jun-06 5:42 
GeneralRe: Creating object Pin
LongRange.Shooter20-Jun-06 17:24
LongRange.Shooter20-Jun-06 17:24 
Questiongetting day of the date Pin
SR Ranjini18-Jun-06 22:55
SR Ranjini18-Jun-06 22:55 
AnswerRe: getting day of the date Pin
rah_sin18-Jun-06 23:25
professionalrah_sin18-Jun-06 23:25 
AnswerRe: getting day of the date Pin
Jesal Rana19-Jun-06 2:39
Jesal Rana19-Jun-06 2:39 
QuestionPLEASE HELP Pin
innocent7318-Jun-06 22:44
innocent7318-Jun-06 22:44 
AnswerRe: PLEASE HELP Pin
Colin Angus Mackay19-Jun-06 0:05
Colin Angus Mackay19-Jun-06 0:05 
GeneralRe: PLEASE HELP Pin
innocent7319-Jun-06 0:19
innocent7319-Jun-06 0:19 
GeneralRe: PLEASE HELP Pin
Colin Angus Mackay19-Jun-06 0:36
Colin Angus Mackay19-Jun-06 0:36 
GeneralRe: PLEASE HELP Pin
innocent7319-Jun-06 0:55
innocent7319-Jun-06 0:55 
GeneralRe: PLEASE HELP Pin
Colin Angus Mackay19-Jun-06 1:54
Colin Angus Mackay19-Jun-06 1:54 
AnswerRe: PLEASE HELP Pin
Nader Elshehabi19-Jun-06 1:14
Nader Elshehabi19-Jun-06 1:14 
GeneralRe: PLEASE HELP Pin
Colin Angus Mackay19-Jun-06 1:57
Colin Angus Mackay19-Jun-06 1:57 
QuestionApplying themes in application using VC# Pin
vikas84singh18-Jun-06 22:33
vikas84singh18-Jun-06 22:33 
AnswerRe: Applying themes in application using VC# Pin
BoneSoft19-Jun-06 4:28
BoneSoft19-Jun-06 4:28 
Questionhowto use dll in windows applications ? Pin
cmpeng3418-Jun-06 21:35
cmpeng3418-Jun-06 21:35 
AnswerRe: howto use dll in windows applications ? Pin
Paul Brower19-Jun-06 4:05
Paul Brower19-Jun-06 4:05 
Questionsql query Pin
Mahmood Ilyas18-Jun-06 21:00
Mahmood Ilyas18-Jun-06 21:00 
AnswerRe: sql query Pin
testy_proconsul18-Jun-06 23:08
testy_proconsul18-Jun-06 23:08 

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.