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

Which collection will you use to store different types of objects collection like... int, employee, student, object etc.

5 Answers   R Systems,


What is writeline?

0 Answers  


What is difference between static and constant variable?

0 Answers  


what is overloading & overriding

3 Answers   Fulcrum Logic, Synergy,


What is difference between throw and throws in c#?

0 Answers  






Which function is the entry point for a DLL in MS Windows 3.1?

0 Answers   3i Infotech,


What is the difference between C# 3.5 and C# 4.0?

0 Answers  


1. Describe page life cycle?

0 Answers   Mphasis, Steria,


Can properties be private in c#?

0 Answers  


Explain acid rule of thumb for transactions in c#.

0 Answers  


Hi Everyone, the design of the form disappear during writing codes for dataset and data grid. The error show in "line of assigning dataset". I don't know what's happen. If anyone know , please share of technical help from someone. Thanks, Horace Trever

1 Answers  


What is the difference between // comments, /* */ comments and /// comments?

0 Answers  


Categories