[System.Security.SecurityCritical]  // auto-generated
        internal bool CheckDemandNoHalt(CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandleInternal rmh)
        {
            CompleteConstruction(null);

            if (PLS == null)
            {
                return(SecurityRuntime.StackContinue);
            }
            else
            {
                return(PLS.CheckDemand(demand, permToken, rmh));
            }
        }
        [System.Security.SecurityCritical]  // auto-generated
        internal bool CheckDemand(CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandleInternal rmh)
        {
            CompleteConstruction(null);

            if (PLS == null)
            {
                return(SecurityRuntime.StackHalt);
            }
            else
            {
                PLS.CheckDemand(demand, permToken, rmh);
                return(SecurityRuntime.StackHalt); //  CS demand check always terminates the stackwalk
            }
        }