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

C#

 
GeneralRe: value type inheritance Pin
CPallini8-May-08 0:40
mveCPallini8-May-08 0:40 
GeneralRe: value type inheritance Pin
George_George8-May-08 3:04
George_George8-May-08 3:04 
GeneralRe: value type inheritance Pin
CPallini8-May-08 3:14
mveCPallini8-May-08 3:14 
GeneralRe: value type inheritance Pin
George_George8-May-08 3:32
George_George8-May-08 3:32 
GeneralRe: value type inheritance Pin
N a v a n e e t h8-May-08 3:41
N a v a n e e t h8-May-08 3:41 
GeneralRe: value type inheritance Pin
George_George8-May-08 3:48
George_George8-May-08 3:48 
GeneralRe: value type inheritance Pin
N a v a n e e t h8-May-08 3:59
N a v a n e e t h8-May-08 3:59 
GeneralRe: value type inheritance Pin
George_George8-May-08 4:17
George_George8-May-08 4:17 
Thanks N a v a n e e t h,


Great article!!

1.

I have answered the question by myself after reading it. It does not matter using new, what matters is whether the value type struct is in a reference type or standalone. In the MSDN sample, it is
standalone, and should be on stack, right?

http://msdn.microsoft.com/en-us/library/34yytbws(VS.80).aspx[^]

2.

In the link you referred, it is mentioned,

--------------------
There are a couple of exceptions to the above rules - captured variables (used in anonymous methods and lambda expressions) are local in terms of the C# code, but end up being compiled into instance variables in a type associated with the delegate created by the anonymous method. The same goes for local variables in an iterator block.
--------------------

I am confused about what means "The same goes for local variables in an iterator block."? )I have the knowledge about iterator and yield statement.)


regards,
George
GeneralRe: value type inheritance Pin
N a v a n e e t h8-May-08 4:45
N a v a n e e t h8-May-08 4:45 
GeneralRe: value type inheritance Pin
George_George8-May-08 21:38
George_George8-May-08 21:38 
GeneralRe: value type inheritance Pin
S. Senthil Kumar8-May-08 6:17
S. Senthil Kumar8-May-08 6:17 
GeneralRe: value type inheritance Pin
CPallini8-May-08 4:03
mveCPallini8-May-08 4:03 
GeneralRe: value type inheritance Pin
George_George8-May-08 4:19
George_George8-May-08 4:19 
GeneralRe: value type inheritance Pin
S. Senthil Kumar8-May-08 6:24
S. Senthil Kumar8-May-08 6:24 
GeneralRe: value type inheritance Pin
George_George8-May-08 21:40
George_George8-May-08 21:40 
GeneralRe: value type inheritance Pin
S. Senthil Kumar9-May-08 0:45
S. Senthil Kumar9-May-08 0:45 
GeneralRe: value type inheritance Pin
Roger Alsing8-May-08 0:43
Roger Alsing8-May-08 0:43 
GeneralRe: value type inheritance Pin
George_George8-May-08 3:03
George_George8-May-08 3:03 
GeneralRe: value type inheritance Pin
S. Senthil Kumar8-May-08 6:21
S. Senthil Kumar8-May-08 6:21 
GeneralRe: value type inheritance Pin
George_George8-May-08 21:49
George_George8-May-08 21:49 
GeneralRe: value type inheritance Pin
S. Senthil Kumar9-May-08 0:42
S. Senthil Kumar9-May-08 0:42 
GeneralRe: value type inheritance Pin
George_George10-May-08 21:57
George_George10-May-08 21:57 
AnswerRe: value type inheritance Pin
N a v a n e e t h8-May-08 3:22
N a v a n e e t h8-May-08 3:22 
GeneralRe: value type inheritance Pin
George_George8-May-08 3:33
George_George8-May-08 3:33 
QuestionFlicker with transparent labels on different panels Pin
Sukhjinder_K7-May-08 23:08
Sukhjinder_K7-May-08 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.