예제 #1
0
 public IdContainer GetCommonContainer(IdContainer Container)
 {
     if (Container == this || Container.IsSubContainerOf(this))
     {
         return(this);
     }
     else if (Parent != null)
     {
         return(Parent.GetCommonContainer(Container));
     }
     else
     {
         return(null);
     }
 }
예제 #2
0
        public void ResetOutside(IdContainer Container)
        {
            var FS = Container.FunctionScope;

            for (var i = 0; i < RouteData.Length; i++)
            {
                if (RouteData[i].Assigned)
                {
                    var C = FS.LocalIdentifiers[i].Container;
                    if (C != Container && !Container.IsSubContainerOf(C))
                    {
                        RouteData[i].Assigned = false;
                        i--;
                    }
                }
            }
        }