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
{...
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 {...
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...
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 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.