If you see the statement carefully, you will find that the parenthesis used in "((Animal)myEntry.Value).Name);"
is opened in the beginning of the function Console.WriteLine();
Console.WriteLine ("New {0} object added to custom collection, " + // parenthesis opens here
"Name = {1}", myEntry.Value.ToString(),
((Animal)myEntry.Value).Name); //<= it closes here
I hope the problem is solved; :-)
