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
Is array a collection c#?
Int map to which .net types?
Can delegates be used as callbacks?
How do I type a whitespace character?
Where is the keyword void used?
What is the purpose of constructor in c#?
What is stringbuilder c#?
Does c# support properties of array types?
Can we inherit a private class in c#?
What is int64 in c#?
Why is it not a good idea to use empty destructors?
Why do we need abstract class?
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
Can we extend static class in c#?
What is the difference between hashtable and dictionary?