﻿using System;
using System.Collections.Generic;

namespace Additio.Configuration
{
    public class Node
    {
        public const string IncludeFolderPath = @"App_Config\Include";

        public string FilePath { get; set; }

        public string RelativePath => FilePath.Remove(0, FilePath.IndexOf(IncludeFolderPath, StringComparison.OrdinalIgnoreCase) + 19);

        public List<Node> Dependencies { get; } = new List<Node>();
    }
}

﻿using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace Additio.Configuration
{
    [DebuggerDisplay("{RelativePath}")]
    public class Node
    {
        private string Root { get; }

        public Node(string root)
        {
            if (!root.EndsWith("\\"))
                root += "\\";
            Root = root;
        }

        public string FilePath { get; set; }

        public string RelativePath => FilePath.Replace(Root, "");

        public List<Node> Dependencies { get; } = new List<Node>();
    }
}

Make node root path variable and add debugger display
Make node root path variable and add debugger display
