Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: generics type instantiation Pin
George_George7-May-08 1:21
George_George7-May-08 1:21 
GeneralRe: generics type instantiation Pin
Guffa7-May-08 6:38
Guffa7-May-08 6:38 
GeneralRe: generics type instantiation Pin
George_George7-May-08 22:20
George_George7-May-08 22:20 
GeneralRe: generics type instantiation Pin
Guffa8-May-08 12:37
Guffa8-May-08 12:37 
GeneralRe: generics type instantiation Pin
George_George8-May-08 22:10
George_George8-May-08 22:10 
GeneralRe: generics type instantiation Pin
George_George7-May-08 1:22
George_George7-May-08 1:22 
GeneralRe: generics type instantiation Pin
George_George7-May-08 1:19
George_George7-May-08 1:19 
GeneralRe: generics type instantiation [modified] Pin
Guffa7-May-08 6:32
Guffa7-May-08 6:32 
George_George wrote:
In the following case, type Foo<goo1> and Foo<goo2> (suppose Goo1 and Goo2 are both reference types) will share one static member if we have one static member defined in type Foo<>?


No. If Goo1 and Goo2 are different types, Foo<Goo1> and Foo<Goo2> will have separate sets of static members.

(I have tested this, to be absolutely sure.)

This doesn't neccesary contradict what's said in the article. The types Foo<Goo1> and Foo<Goo2> can have separate storage space for static members, but still use the same generated code for methods.

Edit:

Forgot to html encode some angle brackets...

Despite everything, the person most likely to be fooling you next is yourself.

modified on Thursday, May 8, 2008 6:39 PM

GeneralRe: generics type instantiation Pin
George_George7-May-08 22:13
George_George7-May-08 22:13 
GeneralRe: generics type instantiation Pin
Guffa8-May-08 12:43
Guffa8-May-08 12:43 
GeneralRe: generics type instantiation Pin
George_George8-May-08 22:05
George_George8-May-08 22:05 
GeneralRe: generics type instantiation Pin
Guffa9-May-08 1:39
Guffa9-May-08 1:39 
GeneralRe: generics type instantiation Pin
George_George10-May-08 22:02
George_George10-May-08 22:02 
QuestionMultiThreading in C#.Net Web Application Pin
kc_krishnan4-May-08 19:21
kc_krishnan4-May-08 19:21 
AnswerRe: MultiThreading in C#.Net Web Application Pin
Christian Graus4-May-08 19:48
protectorChristian Graus4-May-08 19:48 
GeneralRe: MultiThreading in C#.Net Web Application Pin
kc_krishnan4-May-08 23:39
kc_krishnan4-May-08 23:39 
GeneralRe: MultiThreading in C#.Net Web Application Pin
Christian Graus4-May-08 23:55
protectorChristian Graus4-May-08 23:55 
QuestionUnauthorised User pop up comes while accessing from other systems... Pin
ananthrahul4-May-08 19:09
ananthrahul4-May-08 19:09 
AnswerRe: Unauthorised User pop up comes while accessing from other systems... Pin
Christian Graus4-May-08 19:14
protectorChristian Graus4-May-08 19:14 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
ananthrahul4-May-08 19:40
ananthrahul4-May-08 19:40 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
Christian Graus4-May-08 19:49
protectorChristian Graus4-May-08 19:49 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
ananthrahul4-May-08 20:23
ananthrahul4-May-08 20:23 
GeneralRe: Unauthorised User pop up comes while accessing from other systems... Pin
Christian Graus4-May-08 21:11
protectorChristian Graus4-May-08 21:11 
QuestionHow to return to application during OnClosing event? Pin
cocoonwls4-May-08 17:44
cocoonwls4-May-08 17:44 
AnswerRe: How to return to application during OnClosing event? Pin
Christian Graus4-May-08 18:46
protectorChristian Graus4-May-08 18:46 

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.