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

C#

 
AnswerRe: value type inheritance Pin
Roger Alsing7-May-08 23:59
Roger Alsing7-May-08 23:59 
GeneralRe: value type inheritance Pin
George_George8-May-08 0:04
George_George8-May-08 0:04 
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 
Thanks N a v a n e e t h,


1.

N a v a n e e t h wrote:
int refer to int32. long refer to int64.


"Refer to" means the same thing just with a different name (like macro in C) or?

2.

"For each value type, the runtime supplies a corresponding boxed type, which is a class that has the same state and behavior as the value type. Some languages require you to use special syntax when the boxed type is required; others automatically use the boxed type when it is needed. When you define a value type, you are defining both the boxed and the unboxed type."

What is the boxed type in C# for a value type? Always System.Object?

3.

When we use new to create an instance of a value type, like a struct, is it on heap or on stack -- like the same in the page shows?

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


regards,
George
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 
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 

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.