* AspNetHostingPermission.cs: Fixed Intersect(null) which has a
different behaviour in NET_1_1 (return copy of self) than in NET_2_0
(return null).
svn path=/trunk/mcs/; revision=39154
public override IPermission Intersect (IPermission target)
{
AspNetHostingPermission anhp = Cast (target);
- if (anhp == null)
+ if (anhp == null) {
+#if NET_2_0
return null;
+#else
+ return new AspNetHostingPermission (_level);
+#endif
+ }
return new AspNetHostingPermission ((_level <= anhp.Level) ? _level : anhp.Level);
}
+2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
+
+ * AspNetHostingPermission.cs: Fixed Intersect(null) which has a
+ different behaviour in NET_1_1 (return copy of self) than in NET_2_0
+ (return null).
+
2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
* AspNetHostingPermission.cs: Completed TODO.