oops
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 17 Feb 2005 19:18:41 +0000 (19:18 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 17 Feb 2005 19:18:41 +0000 (19:18 -0000)
svn path=/trunk/mcs/; revision=40819

mcs/class/System.Web/System.Web.Compilation/ChangeLog
mcs/class/System.Web/System.Web.Configuration/BuildProvider.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web.UI/SimplePropertyEntry.cs [new file with mode: 0644]

index 3abc9c0236770e3397907a9b88bdfd01e483bfcc..d1f6af6dd9f8dd8b5d944ecf86dac8989702167b 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ExpressionBuilderContext.cs:
+       * ExpressionBuilder.cs: implemented.
+
 2005-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * AspGenerator.cs: don't fail on <tbody runat=server>. Fixes bug #71856.
diff --git a/mcs/class/System.Web/System.Web.Configuration/BuildProvider.cs b/mcs/class/System.Web/System.Web.Configuration/BuildProvider.cs
new file mode 100644 (file)
index 0000000..eaa6030
--- /dev/null
@@ -0,0 +1,90 @@
+//
+// System.Web.Configuration.BuildProvider
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// Copyright (c) 2005 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+using System;
+using System.Configuration;
+
+namespace System.Web.Configuration
+{
+       public class BuildProvider : ConfigurationElement {
+               string extension;
+               string type;
+               BuildProviderAppliesTo appliesTo;
+
+               public BuildProvider ()
+               {
+               }
+
+               public BuildProvider (string extension, string type, BuildProviderAppliesTo appliesTo)
+               {
+                       this.extension = extension;
+                       this.type = type;
+                       this.appliesTo = appliesTo;
+               }
+
+               public string Extension {
+                       get { return extension; }
+                       set { extension = value; }
+               }
+
+               public string Type {
+                       get { return type; }
+                       set { type = value; }
+               }
+
+               public BuildProviderAppliesTo AppliesTo {
+                       get { return appliesTo; }
+                       set { appliesTo = value; }
+               }
+
+               protected override ConfigurationPropertyCollection Properties {
+                       get {
+                               return base.Properties;
+                       }
+               }
+
+               public override bool Equals (object provider)
+               {
+                       if (!(provider is BuildProvider))
+                               return false;
+
+                       BuildProvider p = (BuildProvider) provider;
+                       return (extension == p.extension && type == p.type && appliesTo == p.appliesTo);
+               }
+
+               public override int GetHashCode ()
+               {
+                       return (extension.GetHashCode () ^ (int) appliesTo + type.GetHashCode ());
+               }
+       }
+       
+}
+#endif // NET_2_0
+
diff --git a/mcs/class/System.Web/System.Web.UI/SimplePropertyEntry.cs b/mcs/class/System.Web/System.Web.UI/SimplePropertyEntry.cs
new file mode 100644 (file)
index 0000000..057c9de
--- /dev/null
@@ -0,0 +1,49 @@
+//
+// System.Web.UI.SimplePropertyEntry
+//
+// Authors:
+//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
+//
+// Copyright (c) 2005 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
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Web.UI
+{
+       public class SimplePropertyEntry : PropertyEntry {
+               bool useSetAttribute;
+               object val;
+
+               public bool UseSetAttribute {
+                       get { return useSetAttribute; }
+                       set { useSetAttribute = value; }
+               }
+
+               public object Value {
+                       get { return val; }
+                       set { val = value; }
+               }
+       }
+}
+#endif // NET_2_0
+