---
title: "Types in C#"  
description: "Types in C#"  
author: "Manish Kumar"  
published: 2017-11-29  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/23315/types-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Types in C#

In c# types are divided ino 2 broad categories

Value types- int,float,double,structs,enums etc

Reference types=interface Class delegates arrays etc

By default value types are no nullable .To make them nullable use?

Int=0( I is non nullable so I cannot be set to null i=null will generate compiler error

Int ? j=o(j is of nullable int so j=null is leagal

\

## Answers

### Answer by Manish Kumar

In c# types are divided ino 2 broad categories

Value types- int,float,double,structs,enums etc

Reference types=interface Class delegates arrays etc

By default value types are no nullable .To make them nullable use?

Int=0( I is non nullable so I cannot be set to null i=null will generate compiler error

Int ? j=o(j is of nullable int so j=null is leagal

\


---

Original Source: https://www.mindstick.com/interview/23315/types-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
