static void Main(string[] args)
    {
        var myData = new Dictionary <string, ExampleDataClass>()
        {
            { "First", new ExampleDataClass()
              {
                  Name = "John", Surname = "Doe"
              } },
            { "Second", new ExampleDataClass()
              {
                  Name = "Foo", Surname = "Bar"
              } }
        };
        var fileName = @"C:\MyPath\dict.xml";

        myData.SaveToXml(fileName);
        myData.Clear();
        myData = MySerializer.LoadFromXml <string, ExampleDataClass>(fileName);
    }