예제 #1
0
        public override System.Security.IPermission Copy()
        {
            var p = new ApplicationDefinedPermission(state)
            {
                Name = this.Name
            };

            return(p);
        }
		public override System.Security.IPermission CreatePermission()
		{
			System.Security.IPermission result = null;
			foreach (string perm in neededPermissions)
			{
				var p = new ApplicationDefinedPermission(PermissionState.Unrestricted) { Name = perm };
				result = (result == null ? p : result.Intersect(p));
			}
			return result;
		}
예제 #3
0
 public override System.Security.IPermission CreatePermission()
 {
     System.Security.IPermission result = null;
     foreach (string perm in neededPermissions)
     {
         var p = new ApplicationDefinedPermission(PermissionState.Unrestricted)
         {
             Name = perm
         };
         result = (result == null ? p : result.Intersect(p));
     }
     return(result);
 }
		public override System.Security.IPermission Copy()
		{
			var p = new ApplicationDefinedPermission(state) { Name = this.Name };
			return p;
		}