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 |
What is common type system (cts)?
What?s the Unix name for a Windows service equivalent?
What is .net environment?
How to convert a .NET object into COM operabililty?
0 Answers Petranics Solutions,
What is the difference between asp.net and asp?
Tell us the difference between managed and unmanaged code?
What is a Manifest?
Dot Net is Platform Independent or Platform Dependent..?
What are nullable types in .NET
0 Answers TryTechnicals Pvt Ltd,
Which among the following two is best and why? Abstract Class and Interface. What is the major difference in between those two except the discrete methods and methods with function definition.
What is multiThreading in .NET?
Explain boxing and unboxing in .net.