Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeNode label Pin
Josh Smith10-May-06 7:50
Josh Smith10-May-06 7:50 
GeneralRe: TreeNode label Pin
zaboboa10-May-06 8:36
zaboboa10-May-06 8:36 
QuestionSet default namespace Pin
Duncan Sample10-May-06 5:15
Duncan Sample10-May-06 5:15 
AnswerRe: Set default namespace Pin
leppie10-May-06 6:07
leppie10-May-06 6:07 
QuestionUnInstantiating a class... Pin
Shy Agam10-May-06 4:18
Shy Agam10-May-06 4:18 
AnswerRe: UnInstantiating a class... Pin
Josh Smith10-May-06 4:21
Josh Smith10-May-06 4:21 
GeneralRe: UnInstantiating a class... Pin
Shy Agam10-May-06 4:24
Shy Agam10-May-06 4:24 
AnswerRe: UnInstantiating a class... Pin
Wjousts10-May-06 4:26
Wjousts10-May-06 4:26 
One way you could do something like that might be to have a static method in your class and use that to instantiate your class (or not). Something like this:
public static MyClass GetMyClass(string y)
{
    if (y != "")
        return new MyClass();
    else
        return null;
}

I *think* that if you have a private constructor and you put the public static method in the same class you'll still be able to instantiate through the static method but won't be able to do it directly which I think give you what you need.
AnswerRe: UnInstantiating a class... Pin
Guffa10-May-06 6:59
Guffa10-May-06 6:59 
GeneralRe: UnInstantiating a class... Pin
Shy Agam11-May-06 3:44
Shy Agam11-May-06 3:44 
QuestionWhen does runtime release a DLL when using PInvoke Pin
nicknotyet10-May-06 3:53
nicknotyet10-May-06 3:53 
AnswerRe: When does runtime release a DLL when using PInvoke Pin
led mike10-May-06 17:39
led mike10-May-06 17:39 
GeneralRe: When does runtime release a DLL when using PInvoke Pin
nicknotyet11-May-06 3:53
nicknotyet11-May-06 3:53 
QuestionText Field and Running time issue in .Net Pin
ahchoo10-May-06 3:50
ahchoo10-May-06 3:50 
AnswerRe: Text Field and Running time issue in .Net Pin
Robert Rohde10-May-06 4:16
Robert Rohde10-May-06 4:16 
GeneralRe: Text Field and Running time issue in .Net Pin
ahchoo10-May-06 6:00
ahchoo10-May-06 6:00 
Questionhowto show the hided form ? Pin
cmpeng3410-May-06 3:33
cmpeng3410-May-06 3:33 
AnswerRe: howto show the hided form ? Pin
Wjousts10-May-06 3:38
Wjousts10-May-06 3:38 
AnswerRe: howto show the hided form ? Pin
albCode10-May-06 10:37
albCode10-May-06 10:37 
QuestionXmlArray and serialization Pin
Wjousts10-May-06 3:19
Wjousts10-May-06 3:19 
QuestionLoading SQL Server DataBases proplem Pin
NightAttack10-May-06 2:57
NightAttack10-May-06 2:57 
QuestionGetting the URL of the running instance of Firefox Pin
nagarsoft10-May-06 2:52
nagarsoft10-May-06 2:52 
Questiona simple question about forms ? Pin
cmpeng3410-May-06 2:35
cmpeng3410-May-06 2:35 
AnswerRe: a simple question about forms ? Pin
NaNg1524110-May-06 2:40
NaNg1524110-May-06 2:40 
AnswerRe: a simple question about forms ? Pin
Josh Smith10-May-06 3:21
Josh Smith10-May-06 3:21 

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.