Integer & struct are value types or reference types in .NET?
Answer / guest
Integer and struct are value types in .net.Integer has
fixed range of values hence they are going to be stored in
the stack memory.so,what ever is stored in stack memeory is
a value type.struct is similar to a class(1.e, it contains
dataitems of different datatypes) but the only difference
is that struct is a value type ,class is a reference
type.struct is a value type because the values in struct
can be accesed with the help variable created for the
struct i.e,Dot operator appended to the struct variable can
be used to access each of the individual data items in the
struct class.
| Is This Answer Correct ? | 3 Yes | 0 No |
Do you know what is garbage collector?
What is CCW (COM Callable Wrapper) ?
What is misl?
What are Generics? Where do we use them.
What is smart navigation in .net?
What are The Main Difference Between Client-server Based Applications and Web Based Applications
What is the use of Treeview control?
What is MSIL code ?
What are channels in .NET Remoting?
Is there a way to suppress the finalize process inside the garbage collector forcibly in .net?
What’s different between process and application in .net?
What is the difference between .net and laravel?