Example of value type and refarnce type
Answers were Sorted based on User's Feedback
Answer / saubhagya
Structures are value types and classes are reference types
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / neerajtyagi
---Value Types (C# Reference)
The value types consist of two main categories:
Structs
Enumerations
Structs fall into these categories:
Numeric types
Integral types
Floating-point types
decimal
bool
User defined structs.
------Reference Types (C# Reference)
Variables of reference types, referred to as objects, store
references to the actual data. This section introduces the
following keywords used to declare reference types:
class
interface
delegate
This section also introduces the following built-in
reference types:
object
string
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / kishore.a
Example for Value type is Structure.
Referenece type Class.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / git101288
class is the value type and struct is the refrence type
this the example for value type n refrence type
Is This Answer Correct ? | 0 Yes | 21 No |
Can we call server-side code (c# or vb.net code) from javascript?
Tell us something about static linking and dynamic linking?
What is the use of main method in c#?
What is interface inheritance in c#?
Why do we use namespace in c#?
Why delegates are safe in c#?
Why do we need reflection in c#?
What is a linq in c#?
What are most desktop applications written in?
Explain metadata in c#.
What is int32 in c#?
What is a collection class in c#?