Example of value type and refarnce type

Answers were Sorted based on User's Feedback



Example of value type and refarnce type..

Answer / saubhagya

Structures are value types and classes are reference types

Is This Answer Correct ?    19 Yes 1 No

Example of value type and refarnce type..

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

Example of value type and refarnce type..

Answer / kishore.a

Example for Value type is Structure.
Referenece type Class.

Is This Answer Correct ?    2 Yes 0 No

Example of value type and refarnce type..

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

Post New Answer

More C Sharp Interview Questions

What do u meant by "SBI" of an object?

0 Answers  


What is an escape sequence? Name some string escape sequences in c#.

0 Answers  


what are the different ways a method can be overloaded?

0 Answers   Siebel Systems,


How to use session under class file of APP_Code folder?

0 Answers   ADITI,


What are c# collections?

0 Answers  






What does firstordefault mean in c#?

0 Answers  


Are c# destructors the same as c++ destructors?

0 Answers  


What is a hash table c#?

0 Answers  


What are the 3 types of comments in c#?

0 Answers  


Explain “static” keyword in c#?

0 Answers  


What is scavenging?

2 Answers   HCL,


What is the difference between a variable and a literal?

0 Answers  


Categories