1. Programmable Physics

    Question Simple Snake Game - Snake Head is not moving after ReadKey()

    The snake head ```0``` does not move anywhere when ```Console.ReadKey()``` happens. Here is the full code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleSnakeGame_ConsoleApp { internal class Program {...
  2. Anu

    Question code help using IEnumerable

    I need to fetch the details of the students who score more the 4 marks using IEnumerable interface in C#using System; using System.Linq; using System.Collections.Generic; public class Program { public class Student { public string Name { get;set; } public decimal Avg {...
  3. M

    Beginners question regarding AsEnumerable()

    I'm following a EF Core (beginners) course and there is something I don't understand. Below you can find the most important classes of a little excercise we got, to get to know EF core and the intent. public class Student { public int StudentId { get; set; } public string...
  4. D

    Question Iterating through a tree of objects

    Hello all, I have written a pretty simple tree data structure that implements the IEnumerable interface. class Tree<T> : IEnumerable<T> Everything is working great, I'm adding my nodes and the data is actually an object, so to create a node in my tree, I use something like this: var tree =...
Top Bottom