What is the Difference between value and reference type?
Answer Posted / rahul e. mankumare
Value Types:-
value types are struct type and enumeration.
value type have some types which are given below
1>numeric type
2>boolean tyoe
3>character type
value type contain some integral types means signed
integers and unsigned integer. floating-point,decimal types
are also comes under value type
Reference Types:-
it is user defined type. It contains classes,
interfaces, delegates, arrays also object and strings types.
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Can struct have constructor c#?
How do destructors and garbage collection work in c#?
Classes and structs can be declared as static, is this statement true or false?
How many types of collections are there in c#?
What does firstordefault mean in c#?
What is ulong in c#?
What is sorted list in c#?
Why do we need collections in c#?
How can we set class to be inherited, but prevent the method from being over-ridden?
What do you mean by hashtable c#?
How many types of inheritance are there in c#?
What is difference between new and override in c#?
How do I calculate relative time?
What is gridview c#?
What is difference between ienumerable and list?