ienumerable

  1. 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...
  2. 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