public static IContext GetOrNewContext(this IDictContext context, string type, string relPath) { return(TreeHelper.GetOrNewDescendant <Items, IContext>(context, type, relPath)); }
public static T GetOrNewContext <T>(this IDictContext context, string type, string relPath) where T : class, IContext { return(TreeHelper.GetOrNewDescendant <Items, T>(context, type, relPath)); }