C
codefragment
Hi
(Second CAS question)
At the assembly level I have:
[assembly: PermissionSet(SecurityAction.RequestOptional)]
at the method level I have
[ReflectionPermission(SecurityAction.Demand,
Flags=ReflectionPermissionFlag.RestrictedMemberAccess,
RestrictedMemberAccess=true)]
my method is empty.
However this gives me this message:
Request for the permission of type "..ReflectionPermission..." failed
Can you mix and match these permissions? I thought the method level
permission was an explicit Demand for the security so would be ok?
thanks
(Second CAS question)
At the assembly level I have:
[assembly: PermissionSet(SecurityAction.RequestOptional)]
at the method level I have
[ReflectionPermission(SecurityAction.Demand,
Flags=ReflectionPermissionFlag.RestrictedMemberAccess,
RestrictedMemberAccess=true)]
my method is empty.
However this gives me this message:
Request for the permission of type "..ReflectionPermission..." failed
Can you mix and match these permissions? I thought the method level
permission was an explicit Demand for the security so would be ok?
thanks