Merge pull request #2700 from akoeplinger/monotouch-mobile-static
[mono.git] / mcs / class / System.Web / System.Web.UI / DesignTimeParseData.cs
index bf7dc787f7e8dbb9f63df80ae99f6ffb101b8bb4..6de982c652073f0e59bdd64061eec70889299ec1 100644 (file)
@@ -7,7 +7,7 @@
 //
 
 //
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -42,24 +42,26 @@ namespace System.Web.UI {
                string text;
                IDesignerHost host;
                string durl;
-#if NET_2_0
                string filter;
                bool theme;
                ICollection collection;
-#endif
                
                public DesignTimeParseData (IDesignerHost designerHost, string parseText)
                {
                        host = designerHost;
                        text = parseText;
                }
-#if NET_2_0
+
                public DesignTimeParseData (IDesignerHost designerHost, string parseText, string filter)
                        : this (designerHost, parseText)
                {
                        this.filter = filter;
                }
-#endif
+
+               internal void SetCollection (ICollection collection)
+               {
+                       this.collection = collection;
+               }
 
                public EventHandler DataBindingHandler {
                        get {
@@ -92,7 +94,7 @@ namespace System.Web.UI {
                                return text;
                        }
                }
-#if NET_2_0
+
                public string Filter {
                        get { return filter; }
                }
@@ -106,6 +108,5 @@ namespace System.Web.UI {
                public ICollection UserControlRegisterEntries {
                        get { return collection; }
                }
-#endif
        }
 }