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 |
How can I tell if .net 3.5 is installed?
As you know read-only variables and constants have many similarities, but what is at least one way that they differ?
What is smart navigation in .net?
Elements of CAS
Explain about the features and elements present in Visual studio.NET IDE?
What is MSIL code ?
What is .net latest version?
Tell me about secure socket layer? How to make use of the technology?
Why is .net used?
Difference between class and interface in .net?
How to use datagrid value in select statements where condition ,if cell is hyperlink bounded column?
What application do you use to install a Windows service?