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; }
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; }