Linq

Run Settings
LanguageC#
Language Version
Run Command
namespace WizardGuild { using System.Linq; using static System.Console; class MainClass { static void Main() { var wizards = WizardRetriever.Get(); var gandalf = wizards.FirstOrDefault(x => x.Name.Equals("Gandalf the Grey")); WriteLine(gandalf.Name); } } }
namespace WizardGuild { public class Wizard { public int Id { get; set; } public string Name { get; set; } } }
namespace WizardGuild { using System.Collections.Generic; public static class WizardRetriever { public static List<Wizard> Get() { return new List<Wizard> { new Wizard { Id = 1, Name = "Gandalf the Grey" }, new Wizard { Id = 2, Name = "Merlin" } }; } } }
Editor Settings
Theme
Key bindings
Full width
Lines