How to

create empty array

Published: 30. September 2011 | Updated: 1. November 2011
License: Microsoft Public License (MS-PL)
Categories: Framework » Arrays
Tags: Array Basics C#
Was this snippet helpful for you? YESYES / NONO
int[] empty = new int[0];

// or

int[] empty = new int[] { };
Send us feedback about this snippet »



Related Snippets: