RevertAssert() static private method

static private RevertAssert ( System.Threading.StackCrawlMark &stackMark ) : void
stackMark System.Threading.StackCrawlMark
return void
Example #1
0
        // Static methods for manipulation of stack

        /// <include file='doc\CodeAccessPermission.uex' path='docs/doc[@for="CodeAccessPermission.RevertAssert"]/*' />
        public static void RevertAssert()
        {
            SecurityRuntime isr = SecurityManager.GetSecurityRuntime();

            if (isr != null)
            {
                StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
                isr.RevertAssert(ref stackMark);
            }
        }
        // Static methods for manipulation of stack
        public static void RevertAssert()
        {
            StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;

            SecurityRuntime.RevertAssert(ref stackMark);
        }