Errata: MVA, 201303_CSharp

Nov 27, 2013 at 8:08 PM

RE: Project: After002, File: Program.cs

Method "DisplayAnimalData()" can not work as written; formatted console output has two placeholders, but only one value is specified (looks as if code originally references the "Vocalize()" method as a value type for the 2nd placeholder.

Suggest change from:
private static void DisplayAnimalData(IAnimal animal)
{
  Console.WriteLine("Animal has {0} legs and makes this sound: {1}", animal.NumberOfLegs);
  animal.Vocalize();
}
to:
private static void DisplayAnimalData(IAnimal animal)
{
  Console.WriteLine("Animal has {0} legs and makes this sound:", animal.NumberOfLegs);
  animal.Vocalize();
}
Coordinator
Oct 8, 2014 at 3:46 AM
Should you be interested, I can make you a contributor to curate those samples for us.
Otherwise I am suspicious if I will have time to follow-up on your suggestions.
Just email if you want to: jnixon@microsoft.com
Marked as answer by JerryNixon on 10/7/2014 at 7:47 PM