/// <summary> /// Get the tag info dictionary. /// </summary> /// <param name="ctx"></param> /// <returns></returns> private static Dictionary <object, List <string> > GetTagInfo(IScopeContext ctx) { var r = ctx.GetInternalVariable("_tagInfo") as Dictionary <object, List <string> >; if (r != null) { return(r); } r = new Dictionary <object, List <string> >(); ctx.AddInternalVariable("_tagInfo", r); return(r); }
/// <summary> /// We establish the _tagInfo object in the right place initally. /// </summary> public void Initalize(IScopeContext rootContext) { rootContext.AddInternalVariable("_tagInfo", new Dictionary <object, List <string> >()); }