120
1
using System;
2
using System.Collections;
3
using System.Collections.Generic;
4
5
public class Program
6
{
7
public static void Main(string[] args)
8
{
9
// Simple initialization of an object
10
Employee emp = new Employee()
11
{
12
ID = 6,
13
FirstName = "Code",
14
LastName = "Monkey",
15
StartDate = DateTime.Now
16
};
17
Console.WriteLine(emp.GetType());
18
19
// An array of strings
20
var names = new string[] { "Code Moneky", "Scrum Master", "Product Owner", "Mr. Quality" };
21
Console.WriteLine(names.GetType());
22
23
// A simple Hashtable
24
var ht = new Hashtable {
Cached Result