Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of the <see cref="HandlerRegion{TInstruction}"/> class without
 /// an explicit prologue and epilogue set.
 /// </summary>
 public HandlerRegion()
 {
     Contents = new ScopeRegion <TInstruction>
     {
         // We need to manually set the parent region here.
         ParentRegion = this
     };
 }
Esempio n. 2
0
        /// <summary>
        /// Creates a new instance of the <see cref="ExceptionHandlerRegion{TInstruction}"/> class.
        /// </summary>
        public ExceptionHandlerRegion()
        {
            ProtectedRegion = new ScopeRegion <TInstruction>
            {
                // We need to manually set the parent region here.
                ParentRegion = this
            };

            Handlers = new RegionCollection <TInstruction, HandlerRegion <TInstruction> >(this);
        }