Click here to Skip to main content
16,011,680 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton27-Jun-02 16:22
mvaMarc Clifton27-Jun-02 16:22 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson27-Jun-02 16:42
James T. Johnson27-Jun-02 16:42 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton28-Jun-02 0:37
mvaMarc Clifton28-Jun-02 0:37 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson28-Jun-02 11:50
James T. Johnson28-Jun-02 11:50 
GeneralRe: How to implement "class factory" in C# Pin
Feng Qin27-Jun-02 16:45
Feng Qin27-Jun-02 16:45 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson27-Jun-02 17:18
James T. Johnson27-Jun-02 17:18 
GeneralRe: How to implement "class factory" in C# Pin
Feng Qin27-Jun-02 18:33
Feng Qin27-Jun-02 18:33 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson27-Jun-02 18:41
James T. Johnson27-Jun-02 18:41 
Actually you won't need to make a reference in the 2nd and 3rd methods because of the way it works underneath it all. When you go to return the value a reference to it is placed on the stack; so there is still a reference to the value.

Now when the reference is assigned to the variable it is popped off the stack and you now have the reference stored in another place.

If that makes any sense to you; I'm having a hard time coming up with clear thoughts on it myself.

James
"Java is free - and worth every penny." - Christian Graus
GeneralRe: How to implement "class factory" in C# Pin
Feng Qin27-Jun-02 19:06
Feng Qin27-Jun-02 19:06 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson27-Jun-02 19:23
James T. Johnson27-Jun-02 19:23 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton28-Jun-02 0:42
mvaMarc Clifton28-Jun-02 0:42 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson28-Jun-02 11:07
James T. Johnson28-Jun-02 11:07 
GeneralRe: How to implement "class factory" in C# Pin
James T. Johnson28-Jun-02 11:43
James T. Johnson28-Jun-02 11:43 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton30-Jun-02 5:30
mvaMarc Clifton30-Jun-02 5:30 
GeneralRe: How to implement "class factory" in C# Pin
Feng Qin30-Jun-02 18:41
Feng Qin30-Jun-02 18:41 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton3-Jul-02 2:09
mvaMarc Clifton3-Jul-02 2:09 
GeneralConfiguration file for application Pin
tomiga26-Jun-02 22:17
tomiga26-Jun-02 22:17 
GeneralRe: Configuration file for application Pin
tomiga26-Jun-02 22:18
tomiga26-Jun-02 22:18 
GeneralRe: Configuration file for application Pin
James T. Johnson27-Jun-02 16:16
James T. Johnson27-Jun-02 16:16 
GeneralRe: Configuration file for application Pin
tomiga27-Jun-02 22:41
tomiga27-Jun-02 22:41 
GeneralResource problems... Pin
Ray Cassick26-Jun-02 18:10
Ray Cassick26-Jun-02 18:10 
GeneralRe: Resource problems... Pin
Ray Cassick26-Jun-02 19:09
Ray Cassick26-Jun-02 19:09 
QuestionNo .RC File??? Pin
Marc Clifton26-Jun-02 14:37
mvaMarc Clifton26-Jun-02 14:37 
AnswerRe: No .RC File??? Pin
Chris Rickard26-Jun-02 14:51
Chris Rickard26-Jun-02 14:51 
Questionstructs as value and classes as reference??? Pin
Marc Clifton26-Jun-02 14:15
mvaMarc Clifton26-Jun-02 14:15 

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.