---
title: "What Are Value Types And Reference Types in .net framework ?"  
description: "What Are Value Types And Reference Types in .net framework ?"  
author: "Anonymous User"  
published: 2019-12-12  
updated: 2019-12-12  
canonical: https://www.mindstick.com/forum/155588/what-are-value-types-and-reference-types-in-dot-net-framework  
category: ".net"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# What Are Value Types And Reference Types in .net framework ?

[please explain](https://www.mindstick.com/forum/344/hi-rohith-i-am-new-for-mvc-please-explain-how-to-set-implicitly-isauthenticated-true) What Are [Value Types And Reference](https://answers.mindstick.com/qa/92487/what-are-value-types-and-reference-types) Types in .net [framework](https://www.mindstick.com/forum/34615/software-framework-vs-library) ?

## Replies

### Reply by Nishi Tiwari

## Data Types

**Data types** can be defined as which type of [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) a variable must hold during program execution.

Syntax

[datatypes] [variablename];

[datatypes] [variablename]=value;

Different data types

**Value Data Type**: - It stores value of variable directly into the memory.

• Predefined data types:-int, float, bool, double etc.

• User defined data types:-enum, struct.

**[Reference](https://www.mindstick.com/forum/774/reference-what-does-this-error-mean-in-php) Data type**: - It contains reference or memory address of a variable to store value.

• Predefined data types:-string, object.

• User defined data types:-class, interface etc.


---

Original Source: https://www.mindstick.com/forum/155588/what-are-value-types-and-reference-types-in-dot-net-framework

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
