---
title: "Can you store multiple data types in System.Array?"  
description: "Can you store multiple data types in System.Array?"  
author: "Pushpendra Singh"  
published: 2010-10-25  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/107/can-you-store-multiple-data-types-in-system-array  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Can you store multiple data types in System.Array?

No, You can not store multiple data types in System.Array.\
But if you have an object array then you can\

## Answers

### Answer by Pushpendra Singh

No, You can not store multiple data types in System.Array.\
But if you have an object array then you can\

### Answer by Pushpendra Singh

If you take an array of object, you can store multiple data\
type in an array.\
object[] obj = new object[4];\
obj[0]=1;\
obj[1]="Neeraj";\
obj[2]=true;\
obj[3]=System.DateTime.Now;\


---

Original Source: https://www.mindstick.com/interview/107/can-you-store-multiple-data-types-in-system-array

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
