How to Declare Array of Objects in C# ?

Do you want to declare an array of objects in your C# application ? . Below is a sample code snippet that demonstrates how to declare an integer array in C#.

How to Declare Array of Objects in C# ?

using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net;

namespace AbundantCode
{
    internal class Program
    {
        // How to Declare Array of Objects in C# ?
        private static void Main(string[] args)
        {
            int[] integerArray = new int[] { 1, 67, 43, 89 };
            foreach(var item in integerArray)
                Console.WriteLine(item);
            Console.ReadLine();
        }

    }
}