project programing languages in codecademy code example

Example 1: project programing languages in codecademy

PrintAll(languages);

Example 2: project programing languages in codecademy

public static void PrintAll(IEnumerable<Object> sequence) {
      foreach (Object o in sequence) {
        Console.WriteLine(o);
      }
    }

Example 3: project programing languages in codecademy

var stringLanguage = languages.Select(languagePrint => $"{languagePrint.Year} {languagePrint.Name} {languagePrint.ChiefDeveloper}");

Language.PrintAll(stringLanguage );

Example 4: project programing languages in codecademy

var langScripts = languages

        .Where(language => language.Name.Contains("Script"));

        Language.PrettyPrintAll(langScripts);