static public void NewScope(ref AScope <TType> Scope, Action Action) { var OldScope = Scope; Scope = new AScope <TType>(Scope); try { Action(); } finally { Scope = OldScope; } }
/// <summary> /// /// </summary> /// <param name="ParentScope"></param> public AScope(AScope <TType> ParentScope = default(AScope <TType>)) { this.ParentScope = ParentScope; }