Example of value type and refarnce type

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Is The Dll Hell Problem Solved In .net?

757


What are namespaces, and how they are used?

749


What is the difference between throw and throw ex?

632


Explain the functionalities of satellite assembly?

717


What is sql transaction in c#?

653


What issues can be faced while delivering code?

1668


Can constructor be protected?

629


How do I format in c#?

640


What is difference between ienumerable and iqueryable in c#?

676


Why to use lock statement in c#?

656


what is a static constructor?

845


Can you instantiate a struct without using a new operator in c#?

716


What is c# console application?

673


What are boxing and unboxing?

684


What is difference between web and window application?

573