public override IPermission Copy()
        {
            //Create a new instance of RobocodeInternalPermission with the current
            //value of unrestricted.
            var copy = new RobocodeInternalPermission(PermissionState.None);

            copy.unrestricted = IsUnrestricted();
            //Return the copy.
            return copy;
        }
Пример #2
0
        public override IPermission Copy()
        {
            //Create a new instance of RobocodeInternalPermission with the current
            //value of unrestricted.
            var copy = new RobocodeInternalPermission(PermissionState.None);

            copy.unrestricted = IsUnrestricted();
            //Return the copy.
            return(copy);
        }