예제 #1
0
        static public void NewScope(ref AScope <TType> Scope, Action Action)
        {
            var OldScope = Scope;

            Scope = new AScope <TType>(Scope);
            try
            {
                Action();
            }
            finally
            {
                Scope = OldScope;
            }
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="ParentScope"></param>
 public AScope(AScope <TType> ParentScope = default(AScope <TType>))
 {
     this.ParentScope = ParentScope;
 }