using System;
using System.Reflection;
using System.Collections.Generic;
class MainClass
{
public static void Main(string[] args)
{
Dictionary MyClassDictionary = new Dictionary();
MyClassDictionary.Add("Crypto", new MyClass());
MyClass myClass = MyClassDictionary["Crypto"];
Console.WriteLine("Got from dictionary: {0}", myClass);
}
}
class MyClass {
public override string ToString(){
return "my class";
}
}
Got from dictionary: my class