Fill placeholders using an array of objects.

image_pdfimage_print
   
  

using System;
using System.Collections.Generic;
using System.Text;

class Program {
    static void Main(string[] args) {
        object[] stuff = { "Hello", 20.9, 1, "There", "83", 99.99933 };
        Console.WriteLine("The Stuff: {0} , {1} , {2} , {3} , {4} , {5} ", stuff);

        Console.WriteLine("{0}, Number{0}, Number{0}", 9);

    }
}

   
     


This entry was posted in Data Types. Bookmark the permalink.