Author: krasnov
Date: 2007-01-03 08:03:16 -0500 (Wed, 03 Jan 2007)
New Revision: 70419
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/SiteMap.cs
trunk/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs
Log:
* SiteMap.cs, SiteMapNodeCollection.cs: TARGET_JVM of static members
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2007-01-03 12:52:39 UTC
(rev 70418)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2007-01-03 13:03:16 UTC
(rev 70419)
@@ -1,3 +1,7 @@
+2007-01-03 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+ * SiteMap.cs, SiteMapNodeCollection.cs: TARGET_JVM of static members
+
2006-12-20 Marek Habersack <[EMAIL PROTECTED]>
* HttpContext.cs: add internal setter for the Profile property.
Modified: trunk/mcs/class/System.Web/System.Web/SiteMap.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/SiteMap.cs 2007-01-03 12:52:39 UTC
(rev 70418)
+++ trunk/mcs/class/System.Web/System.Web/SiteMap.cs 2007-01-03 13:03:16 UTC
(rev 70419)
@@ -92,8 +92,23 @@
}
}
+#if TARGET_JVM
+ const string SiteMap_provider = "SiteMap_provider";
+ const string SiteMap_providers = "SiteMap_providers";
+ static SiteMapProvider provider
+ {
+ get { return (SiteMapProvider)
AppDomain.CurrentDomain.GetData (SiteMap_provider); }
+ set { AppDomain.CurrentDomain.SetData
(SiteMap_provider, value); }
+ }
+ static SiteMapProviderCollection providers
+ {
+ get { return (SiteMapProviderCollection)
AppDomain.CurrentDomain.GetData (SiteMap_providers); }
+ set { AppDomain.CurrentDomain.SetData
(SiteMap_providers, value); }
+ }
+#else
static SiteMapProvider provider;
static SiteMapProviderCollection providers;
+#endif
static object locker = new object ();
}
}
Modified: trunk/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs
2007-01-03 12:52:39 UTC (rev 70418)
+++ trunk/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs
2007-01-03 13:03:16 UTC (rev 70419)
@@ -42,7 +42,16 @@
public class SiteMapNodeCollection : IList, IHierarchicalEnumerable
{
ArrayList list;
+#if TARGET_JVM
+ const string _siteMapNodeCollection_EmptyList =
"SiteMapNodeCollection.EmptyList";
+ internal static SiteMapNodeCollection EmptyList
+ {
+ get { return (SiteMapNodeCollection)
AppDomain.CurrentDomain.GetData (_siteMapNodeCollection_EmptyList); }
+ set { AppDomain.CurrentDomain.SetData
(_siteMapNodeCollection_EmptyList, value); }
+ }
+#else
internal static SiteMapNodeCollection EmptyList;
+#endif
static SiteMapNodeCollection ()
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches