|
@@ -115,13 +115,8 @@ namespace System.Web {
|
|
|
public override IPermission Intersect (IPermission target)
|
|
public override IPermission Intersect (IPermission target)
|
|
|
{
|
|
{
|
|
|
AspNetHostingPermission anhp = Cast (target);
|
|
AspNetHostingPermission anhp = Cast (target);
|
|
|
- if (anhp == null) {
|
|
|
|
|
-#if NET_2_0
|
|
|
|
|
|
|
+ if (anhp == null)
|
|
|
return null;
|
|
return null;
|
|
|
-#else
|
|
|
|
|
- return new AspNetHostingPermission (_level);
|
|
|
|
|
-#endif
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
return new AspNetHostingPermission ((_level <= anhp.Level) ? _level : anhp.Level);
|
|
return new AspNetHostingPermission ((_level <= anhp.Level) ? _level : anhp.Level);
|
|
|
}
|
|
}
|