Click here to Skip to main content
15,913,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to remove whitespace from read mp3 tags Pin
Guffa10-May-06 7:24
Guffa10-May-06 7:24 
QuestionHow to bind bindingnavigator with datagridview Pin
Elvia Gonzalez10-May-06 6:01
Elvia Gonzalez10-May-06 6:01 
AnswerRe: How to bind bindingnavigator with datagridview Pin
Josh Smith10-May-06 7:24
Josh Smith10-May-06 7:24 
GeneralRe: How to bind bindingnavigator with datagridview Pin
Elvia Gonzalez10-May-06 8:44
Elvia Gonzalez10-May-06 8:44 
QuestionTreeNode label Pin
zaboboa10-May-06 5:59
zaboboa10-May-06 5:59 
AnswerRe: TreeNode label Pin
Josh Smith10-May-06 7:35
Josh Smith10-May-06 7:35 
GeneralRe: TreeNode label Pin
zaboboa10-May-06 7:46
zaboboa10-May-06 7:46 
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 

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.