I just want to take the first element from a list and add it to a file. My problem is that I am not sure why the function "take" does not work, is not compiling because of it.
ListBox does not contain a definition for 'First' and no extension method 'First' accepting a first argument of type 'ListBox' could be found (are you missing a using directive or an assembly reference?
var firstItem = Ingredients.Take(1);
File.AppendAllText("Pizza.txt", firstItem + Environment.NewLine);