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

Why do we use stringbuilder in c#?

0 Answers  


What is int parse in c#?

0 Answers  


What is extended class in c#?

0 Answers  


hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

0 Answers   Tricom,


What is decimal in c#?

0 Answers  






What is parallel foreach c#?

0 Answers  


What is the name of the implicit input parameter of a set accessor for any property?

1 Answers   TCS,


Why do we need reflection in c#?

0 Answers  


what is scope of a protected internal member variable of a c# class

0 Answers   Cognizant,


How do partial classes work in c#?

0 Answers  


What are jagged arrays used for?

0 Answers  


How can we sort the elements of the array in descending order?

0 Answers  


Categories