Populate a tree from Hierarchical data using 1 LINQ statement
- by Midhat
Hi. I have set up this programming exercise.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class DataObject {
public int ID { get; set; }
public int ParentID { get; set; }
public string Data { get; set; }
public DataObject(int id, int pid,…