Re: Why is this method requesting these permissions?
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Nov 2006 20:17:15 +0000 (UTC)
now you know how good permcalc really works....
by reading all your posts recently on CAS - i wonder what you are really trying to do...
dominick
I have a class BeanResult which inherits from Object (ie no declared
parent class) and it does not have a ToString method so that inherits
from Object. One note, this is a J# class, not a C# one.
PermCalc gives the following listing which shows a permission request
from ToString which means that every class will then require
UnmanagedCode as every class eventually inherits from Object.
What is going on here?
<Type Name="BeanResult">
<Method Sig="instance void .ctor(string )" />
<Method Sig="instance void setColor(class Color )" />
<Method Sig="instance object MemberwiseClone()" />
<Method Sig="instance string ToString()">
<Demand>
<PermissionSet version="1"
class="System.Security.PermissionSet">
<IPermission version="1"
class="System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
Flags="UnmanagedCode" />
</PermissionSet>
</Demand>
<Sandbox>
<PermissionSet version="1"
class="System.Security.PermissionSet">
<IPermission version="1"
class="System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
Flags="UnmanagedCode" />
</PermissionSet>
</Sandbox>
</Method>
</Type>
Cubicle Wars - http://www.windwardreports.com/film.htm
.
- Prev by Date: making permissions optional
- Next by Date: Re: how to use <authorization>
- Previous by thread: making permissions optional
- Next by thread: Re: Why is this method requesting these permissions?
- Index(es):