[System.Web] 20 attributes from reference source
authorkasthack <kasthack@epicm.org>
Mon, 28 Sep 2015 23:09:35 +0000 (02:09 +0300)
committerkasthack <kasthack@epicm.org>
Mon, 28 Sep 2015 23:09:35 +0000 (02:09 +0300)
20 files changed:
mcs/class/System.Web/System.Web.Compilation/BuildProviderAppliesToAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.Compilation/DesignTimeResourceProviderFactoryAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.Compilation/ExpressionEditorAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.Compilation/ExpressionPrefixAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.Compilation/FolderLevelBuildProviderAppliesToAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/ConstructorNeedsTagAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/ControlBuilderAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/CssClassPropertyAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/DataBindingHandlerAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/DataKeyPropertyAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/FileLevelControlBuilderAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/FilterableAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/IDReferencePropertyAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/NonVisualControlAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/SupportsEventValidationAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/TemplateInstanceAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.UI/ThemeableAttribute.cs [deleted file]
mcs/class/System.Web/System.Web.dll.sources
mcs/class/System.Web/System.Web/PreApplicationStartMethodAttribute.cs [deleted file]

diff --git a/mcs/class/System.Web/System.Web.Compilation/BuildProviderAppliesToAttribute.cs b/mcs/class/System.Web/System.Web.Compilation/BuildProviderAppliesToAttribute.cs
deleted file mode 100644 (file)
index 3ec58fe..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// System.Web.Compilation.BuildProviderAppliesToAttribute
-//
-// Authors:
-//     Chris Toshok (toshok@ximian.com)
-//
-// (C) 2006-2009 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.
-//
-
-namespace System.Web.Compilation
-{
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class BuildProviderAppliesToAttribute : Attribute
-       {
-               BuildProviderAppliesTo appliesTo;
-
-               public BuildProviderAppliesToAttribute (BuildProviderAppliesTo appliesTo)
-               {
-                       this.appliesTo = appliesTo;
-               }
-
-               public BuildProviderAppliesTo AppliesTo {
-                       get { return appliesTo; }
-               }
-       }
-
-}
-
-
diff --git a/mcs/class/System.Web/System.Web.Compilation/DesignTimeResourceProviderFactoryAttribute.cs b/mcs/class/System.Web/System.Web.Compilation/DesignTimeResourceProviderFactoryAttribute.cs
deleted file mode 100644 (file)
index 4992586..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-//
-// System.Web.Compilation.DesignTimeResourceProviderFactoryAttribute
-//
-// Authors:
-//     Chris Toshok (toshok@ximian.com)
-//
-// (C) 2006 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.
-//
-
-
-
-using System;
-using System.CodeDom;
-using System.Web.UI;
-
-namespace System.Web.Compilation {
-
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class DesignTimeResourceProviderFactoryAttribute : Attribute
-       {
-               string factoryTypeName;
-
-               public DesignTimeResourceProviderFactoryAttribute (string factoryTypeName)
-               {
-                       this.factoryTypeName = factoryTypeName;
-               }
-
-               public DesignTimeResourceProviderFactoryAttribute (System.Type factoryType)
-               {
-                       this.factoryTypeName = factoryType.AssemblyQualifiedName;
-               }
-
-               public override bool IsDefaultAttribute ()
-               {
-                       return factoryTypeName == null;
-               }
-
-               public string FactoryTypeName {
-                       get { return factoryTypeName; }
-               }
-
-       }
-
-}
-
-
diff --git a/mcs/class/System.Web/System.Web.Compilation/ExpressionEditorAttribute.cs b/mcs/class/System.Web/System.Web.Compilation/ExpressionEditorAttribute.cs
deleted file mode 100644 (file)
index 9234a6b..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-//
-// System.Web.Compilation.ExpressionEditorAttribute
-//
-// Authors:
-//     Chris Toshok (toshok@ximian.com)
-//
-// (C) 2006 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.
-//
-
-
-
-namespace System.Web.Compilation {
-
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class ExpressionEditorAttribute : Attribute
-       {
-               string typeName;
-
-               public ExpressionEditorAttribute (string typeName)
-               {
-                       this.typeName = typeName;
-               }
-               
-               public ExpressionEditorAttribute (Type type)
-               {
-                       this.typeName = type.AssemblyQualifiedName;
-               }
-
-               public string EditorTypeName {
-                       get { return typeName; }
-               }
-
-               [MonoTODO ("Not implemented")]
-               public override bool Equals (object obj)
-               {
-                       throw new NotImplementedException ();
-               }
-
-               [MonoTODO ("Not implemented")]
-               public override int GetHashCode ()
-               {
-                       throw new NotImplementedException ();
-               }
-
-       }
-}
-
-
diff --git a/mcs/class/System.Web/System.Web.Compilation/ExpressionPrefixAttribute.cs b/mcs/class/System.Web/System.Web.Compilation/ExpressionPrefixAttribute.cs
deleted file mode 100644 (file)
index edea592..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-//
-// System.Web.Compilation.ExpressionPrefixAttribute
-//
-// Authors:
-//     Chris Toshok (toshok@ximian.com)
-//
-// (C) 2006 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.
-//
-
-
-
-namespace System.Web.Compilation {
-
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class ExpressionPrefixAttribute : Attribute
-       {
-               string expressionPrefix;
-
-               public ExpressionPrefixAttribute (string expressionPrefix)
-               {
-                       this.expressionPrefix = expressionPrefix;
-               }
-
-               public string ExpressionPrefix {
-                       get { return expressionPrefix; }
-               }
-       }
-}
-
-
diff --git a/mcs/class/System.Web/System.Web.Compilation/FolderLevelBuildProviderAppliesToAttribute.cs b/mcs/class/System.Web/System.Web.Compilation/FolderLevelBuildProviderAppliesToAttribute.cs
deleted file mode 100644 (file)
index 3e1db07..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// Authors:
-//   Marek Habersack <mhabersack@novell.com>
-//
-// (C) 2010 Novell, Inc (http://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.
-//
-using System;
-
-namespace System.Web.Compilation
-{
-       [AttributeUsage (AttributeTargets.Class, AllowMultiple = false)]
-       public sealed class FolderLevelBuildProviderAppliesToAttribute : Attribute
-       {
-               public FolderLevelBuildProviderAppliesTo AppliesTo {
-                       get; private set;
-               }
-               
-               public FolderLevelBuildProviderAppliesToAttribute (FolderLevelBuildProviderAppliesTo appliesTo)
-               {
-                       this.AppliesTo = appliesTo;
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/ConstructorNeedsTagAttribute.cs b/mcs/class/System.Web/System.Web.UI/ConstructorNeedsTagAttribute.cs
deleted file mode 100644 (file)
index 3e30cba..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// System.Web.UI.ConstructorNeedsTagAttribute.cs
-//
-// Duncan Mak  (duncan@ximian.com)
-//
-// (C) Ximian, Inc.
-// 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.
-//
-
-using System.Security.Permissions;
-
-namespace System.Web.UI {
-
-       // CAS - no InheritanceDemand here as the class is sealed
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       // attributes
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class ConstructorNeedsTagAttribute : Attribute
-       {
-               bool needsTag;
-
-               public ConstructorNeedsTagAttribute ()
-               {
-                       needsTag = false;
-               }
-
-               public ConstructorNeedsTagAttribute (bool needsTag)
-               {
-                       this.needsTag = needsTag;
-               }
-
-               public bool NeedsTag {
-                       get { return needsTag; }
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/ControlBuilderAttribute.cs b/mcs/class/System.Web/System.Web.UI/ControlBuilderAttribute.cs
deleted file mode 100644 (file)
index be84ba2..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-//
-// System.Web.UI.ControlBuilderAttribute.cs
-//
-// Authors:
-//     Duncan Mak  (duncan@ximian.com)
-//     Gonzalo Paniagua Javier (gonzalo@ximian.com)
-//     Sebastien Pouliot  <sebastien@ximian.com>
-//
-// (C) 2002 Ximian, Inc. (http://www.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.
-//
-
-using System.Security.Permissions;
-
-namespace System.Web.UI {
-
-       // CAS - no InheritanceDemand here as the class is sealed
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       // attributes
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class ControlBuilderAttribute : Attribute
-       {
-               Type builderType;
-               public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute (null);
-               
-               public ControlBuilderAttribute (Type builderType)
-               {
-                       this.builderType = builderType;
-               }
-
-               public Type BuilderType {
-                       get { return builderType; }
-               }
-
-               public override bool Equals (object obj)
-               {
-                       ControlBuilderAttribute cba = (obj as ControlBuilderAttribute);
-                       if (cba == null)
-                               return false;
-                       return (cba.builderType == builderType);
-               }
-
-               public override int GetHashCode ()
-               {
-                       return base.GetHashCode ();
-               }
-
-               public override bool IsDefaultAttribute ()
-               {
-                       return (builderType == null);
-               }
-       }
-}
-
diff --git a/mcs/class/System.Web/System.Web.UI/CssClassPropertyAttribute.cs b/mcs/class/System.Web/System.Web.UI/CssClassPropertyAttribute.cs
deleted file mode 100644 (file)
index 10d77ed..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// System.Web.UI.CssClassPropertyAttribute
-//
-// Authors:
-//     Atsushi Enomoto  <atsushi@ximian.com>
-//
-// (C) 2008-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
-// "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.
-//
-using System;
-using System.ComponentModel;
-using System.Security.Permissions;
-
-namespace System.Web.UI {
-       [AttributeUsage (AttributeTargets.Property)]
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       public sealed class CssClassPropertyAttribute : Attribute
-       {
-               public CssClassPropertyAttribute ()
-               {
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/DataBindingHandlerAttribute.cs b/mcs/class/System.Web/System.Web.UI/DataBindingHandlerAttribute.cs
deleted file mode 100644 (file)
index d5ff984..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-//
-// System.Web.UI.WebControls.DataBindingHandlerAttribute class
-//
-// Author: Duncan Mak (duncan@novell.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.
-//
-
-using System.Security.Permissions;
-
-namespace System.Web.UI {
-
-       // CAS - no InheritanceDemand here as the class is sealed
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       // attributes
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class DataBindingHandlerAttribute : Attribute
-       {
-               string name;            
-
-               static DataBindingHandlerAttribute ()
-               {
-                       Default = new DataBindingHandlerAttribute ();
-               }
-
-               public DataBindingHandlerAttribute ()
-                       : this (String.Empty)
-               {
-               }
-
-               public DataBindingHandlerAttribute (string name)
-               {
-                       this.name = (name != null) ? name : String.Empty;
-               }
-
-               public DataBindingHandlerAttribute (Type type)
-               {
-                       this.name = type.AssemblyQualifiedName;
-               }
-
-               public static readonly DataBindingHandlerAttribute Default;
-
-               public override bool Equals (object obj) 
-               {
-                       DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute;
-                       if (other == null) {
-                               return false;
-                       }
-
-                       return HandlerTypeName.Equals (other.HandlerTypeName);
-               }
-
-               public override int GetHashCode () 
-               {
-                       return HandlerTypeName.GetHashCode ();
-               }
-
-               public string HandlerTypeName {
-                       get { return name; }
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/DataKeyPropertyAttribute.cs b/mcs/class/System.Web/System.Web.UI/DataKeyPropertyAttribute.cs
deleted file mode 100644 (file)
index efb9c58..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-//
-// Authors:
-//     Marek Habersack <mhabersack@novell.com>
-//
-// (C) 2010 Novell, Inc (http://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.
-//
-using System;
-
-namespace System.Web.UI
-{
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class DataKeyPropertyAttribute : Attribute
-       {
-               public string Name { get; private set; }
-               
-               public DataKeyPropertyAttribute (string name)
-               {
-                       this.Name = name;
-               }
-
-               public override bool Equals (object obj)
-               {
-                       var attr = obj as DataKeyPropertyAttribute;
-                       if (attr == null)
-                               return false;
-
-                       return String.Compare (this.Name, attr.Name, StringComparison.Ordinal) == 0;
-               }
-
-               public override int GetHashCode ()
-               {
-                       string name = Name;
-                       if (name == null)
-                               return 0;
-
-                       return name.GetHashCode ();
-               }               
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/FileLevelControlBuilderAttribute.cs b/mcs/class/System.Web/System.Web.UI/FileLevelControlBuilderAttribute.cs
deleted file mode 100644 (file)
index 16f6fba..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-//
-// System.Web.UI.FileLevelControlBuilderAttribute.cs
-//
-// Authors:
-//     Arina Itkes (arinai@mainsoft.com)
-//     Marek Habersack (mhabersack@novell.com)
-//
-// (C) 2007 Mainsoft Co. (http://www.mainsoft.com)
-// (C) 2009-2010 Novell, Inc (http://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.
-//
-
-namespace System.Web.UI
-{
-       [AttributeUsageAttribute (AttributeTargets.Class)]
-       public sealed class FileLevelControlBuilderAttribute : Attribute
-       {
-               public static readonly FileLevelControlBuilderAttribute Default = new FileLevelControlBuilderAttribute (null);
-               
-               public FileLevelControlBuilderAttribute (Type builderType)
-               {
-                       this.BuilderType = builderType;
-               }
-               
-               public Type BuilderType {
-                       get;
-                       private set;
-               }
-               
-               public override bool Equals (Object obj)
-               {
-                       var attr = obj as FileLevelControlBuilderAttribute;
-                       return ((attr != null) && this.BuilderType == attr.BuilderType);
-               }
-               
-               public new static bool Equals (Object objA, Object objB)
-               {
-                       var attrA = objA as FileLevelControlBuilderAttribute;
-                       if (attrA == null)
-                               return false;
-
-                       var attrB = objB as FileLevelControlBuilderAttribute;
-                       if (attrB == null)
-                               return false;
-
-                       return (attrA.BuilderType == attrB.BuilderType);
-               }
-                       
-               public override int GetHashCode ()
-               {
-                       Type type = BuilderType;
-                       if (type == null)
-                               return base.GetHashCode ();
-
-                       return type.GetHashCode ();
-               }
-               
-               public override bool IsDefaultAttribute ()
-               {
-                       return this == Default;
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/FilterableAttribute.cs b/mcs/class/System.Web/System.Web.UI/FilterableAttribute.cs
deleted file mode 100644 (file)
index afbfb3b..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-//
-// System.Web.UI.FilterableAttribute
-//
-// Authors:
-//     Sanjay Gupta (gsanjay@novell.com)
-//
-// (C) 2004-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
-// "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.
-//
-using System;
-using System.ComponentModel;
-
-namespace System.Web.UI {
-       [AttributeUsage (AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
-       public sealed class FilterableAttribute : Attribute
-       {
-               bool filterable;
-
-               public FilterableAttribute (bool filterable) 
-               {
-                       this.filterable = filterable;
-               }
-
-               public static readonly FilterableAttribute Default = new FilterableAttribute (true);
-
-               public static readonly FilterableAttribute No = new FilterableAttribute (false);
-
-               public static readonly FilterableAttribute Yes = new FilterableAttribute (true);
-               
-               public bool Filterable { 
-                       get { return filterable; } 
-               }
-
-               public override bool Equals (object obj)
-               {
-                       if (obj != null && obj is FilterableAttribute) {
-                               FilterableAttribute fa = (FilterableAttribute) obj;
-                               return (this.filterable == fa.filterable);
-                       }
-                       return false;
-               }
-
-               public override int GetHashCode ()
-               {
-                       return this.filterable.GetHashCode ();
-               }
-
-               public override bool IsDefaultAttribute ()
-               {
-                       return Equals (Default);
-               }
-
-               public static bool IsObjectFilterable (object obj)
-               {
-                       return IsTypeFilterable (obj.GetType ());
-               }
-
-               public static bool IsPropertyFilterable (PropertyDescriptor propDesc)
-               {
-                       System.ComponentModel.AttributeCollection attributes = propDesc.Attributes;
-                       if (attributes.Count != 0) {
-                               foreach (Attribute attrib in attributes)
-                                       if (attrib is FilterableAttribute)
-                                               return true;
-                       }
-                       return false;
-               }
-
-               public static bool IsTypeFilterable (Type type)
-               {
-                       Object [] attributes = type.GetCustomAttributes (typeof (FilterableAttribute), false);
-                       if (attributes.Length != 0) {
-                               foreach (Attribute attrib in attributes)
-                                       if (attrib is FilterableAttribute)
-                                               return true;
-                       }
-                       return false;
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/IDReferencePropertyAttribute.cs b/mcs/class/System.Web/System.Web.UI/IDReferencePropertyAttribute.cs
deleted file mode 100644 (file)
index bfc7a33..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// System.Web.UI.IDReferencePropertyAttribute.cs
-//
-// Authors:
-//      Sanjay Gupta (gsanjay@novell.com)
-//
-// (C) 2004-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
-// "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.
-//
-
-using System;
-
-namespace System.Web.UI
-{
-       public sealed class IDReferencePropertyAttribute : Attribute
-       {
-               Type controlType;
-
-               public IDReferencePropertyAttribute ()
-               {
-               }
-
-               public IDReferencePropertyAttribute (Type controlReferenceType)
-               {
-                       controlType = controlReferenceType;
-               }
-               
-               public override bool Equals (object obj)
-               {
-                       if (obj != null && obj is IDReferencePropertyAttribute) 
-                               return (this.controlType == ((IDReferencePropertyAttribute) obj).controlType);
-                       return false;
-               }
-               
-               public override int GetHashCode ()
-               {
-                       return controlType.GetHashCode ();
-               }
-
-               public Type ReferencedControlType { 
-                       get { return controlType; }
-               }
-       }
-}
-
diff --git a/mcs/class/System.Web/System.Web.UI/NonVisualControlAttribute.cs b/mcs/class/System.Web/System.Web.UI/NonVisualControlAttribute.cs
deleted file mode 100644 (file)
index e5950e6..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// System.Web.UI.WebControls.NonVisualControlAttribute.cs
-//
-// Authors:
-//     Lluis Sanchez Gual (lluis@novell.com)
-//
-// (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
-// "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.
-//
-
-using System;
-
-namespace System.Web.UI
-{
-       public sealed class NonVisualControlAttribute: Attribute
-       {
-               public static readonly NonVisualControlAttribute Visual = new NonVisualControlAttribute (false);
-               public static readonly NonVisualControlAttribute NonVisual = new NonVisualControlAttribute (true);
-               public static readonly NonVisualControlAttribute Default = Visual;
-               
-               bool nonVisual;
-               
-               public NonVisualControlAttribute (): this (true)
-               {
-               }
-               
-               public NonVisualControlAttribute (bool nonVisual)
-               {
-                       this.nonVisual = nonVisual; 
-               }
-               
-               public override bool Equals (object obj)
-               {
-                       NonVisualControlAttribute ot = obj as NonVisualControlAttribute;
-                       return ot != null && ot.nonVisual == nonVisual;
-               }
-               
-               public override int GetHashCode ()
-               {
-                       return GetType().GetHashCode () + nonVisual.GetHashCode ();
-               }
-               
-               public override bool IsDefaultAttribute ()
-               {
-                       return Equals (Default);
-               }
-               
-               public bool IsNonVisual {
-                       get { return nonVisual; }
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs b/mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs
deleted file mode 100644 (file)
index 35f6fad..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// System.Web.UI.PersistChildrenAttribute.cs
-//
-// Duncan Mak  (duncan@ximian.com)
-//
-// (C) Ximian, Inc.
-// 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
-// "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.
-//
-
-using System.Security.Permissions;
-
-namespace System.Web.UI {
-
-       // CAS - no InheritanceDemand here as the class is sealed
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       // attributes
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class PersistChildrenAttribute : Attribute
-       {
-               bool persist;
-               bool usesCustomPersistence;
-               
-               public PersistChildrenAttribute (bool persist)
-               {
-                       this.persist = persist;
-               }
-
-               public PersistChildrenAttribute (bool persist,
-                                                bool usesCustomPersistence)
-               {
-                       this.persist = persist;
-                       this.usesCustomPersistence = usesCustomPersistence;
-               }
-               
-               public static readonly PersistChildrenAttribute Default = new PersistChildrenAttribute (true);
-               public static readonly PersistChildrenAttribute Yes = new PersistChildrenAttribute (true);
-               public static readonly PersistChildrenAttribute No = new PersistChildrenAttribute (false);
-
-               public bool Persist {
-                       get { return persist; }
-               }
-
-               public bool UsesCustomPersistence 
-               {
-                       get {
-                               return (usesCustomPersistence);
-                       }
-               }
-               
-               public override bool Equals (object obj)
-               {
-                       PersistChildrenAttribute pobj = (obj as PersistChildrenAttribute);
-                       if (pobj == null)
-                               return false;
-
-                       return (pobj.persist == persist && pobj.usesCustomPersistence == usesCustomPersistence);
-               }
-
-               public override int GetHashCode ()
-               {
-                       return persist ? 1 : 0;
-               }
-
-               public override bool IsDefaultAttribute ()
-               {
-                       /* No idea what the usesCustomPersistence
-                        * default is (I assume false, but its not
-                        * documented)
-                        */
-                       return (persist == true);
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/SupportsEventValidationAttribute.cs b/mcs/class/System.Web/System.Web.UI/SupportsEventValidationAttribute.cs
deleted file mode 100644 (file)
index f0f1662..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// System.Web.UI.SupportsEventValidationAttribute class
-//
-// Author:
-//     Sebastien Pouliot  <sebastien@ximian.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
-// "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.
-//
-
-using System.Security.Permissions;
-
-namespace System.Web.UI 
-{
-       // CAS - no InheritanceDemand here as the class is sealed
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       // attributes
-       [AttributeUsage (AttributeTargets.Class)]
-       public sealed class SupportsEventValidationAttribute : Attribute 
-       {
-               public SupportsEventValidationAttribute ()
-               {
-               }
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/TemplateInstanceAttribute.cs b/mcs/class/System.Web/System.Web.UI/TemplateInstanceAttribute.cs
deleted file mode 100644 (file)
index 282915e..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-// System.Web.UI.TemplateInstanceAttribute.cs
-//
-// Noam Lampert  (noaml@mainsoft.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.
-//
-using System.ComponentModel;
-using System.Security.Permissions;
-
-namespace System.Web.UI
-{
-       // attributes
-       [AttributeUsage (AttributeTargets.Property)]
-       public sealed class TemplateInstanceAttribute : Attribute
-       {
-               #region Fields
-
-               readonly TemplateInstance _instance;
-
-               public static readonly TemplateInstanceAttribute Single;
-               public static readonly TemplateInstanceAttribute Multiple;
-               public static readonly TemplateInstanceAttribute Default;
-
-               #endregion
-
-               #region Constructors
-
-               static TemplateInstanceAttribute () {
-                       Single = new TemplateInstanceAttribute (TemplateInstance.Single);
-                       Multiple = new TemplateInstanceAttribute (TemplateInstance.Multiple);
-                       Default = Multiple;
-               }
-
-               #endregion
-
-               #region Properties
-
-               public TemplateInstance Instances { get { return _instance; } }
-
-               #endregion
-
-               #region Methods
-
-               public TemplateInstanceAttribute (TemplateInstance instance) {
-                       _instance = instance;
-               }
-
-               public override bool IsDefaultAttribute () {
-                       return Equals (Default);
-               }
-
-               public override bool Equals (object obj) {
-                       if (this == obj)
-                               return true;
-
-                       TemplateInstanceAttribute other = obj as TemplateInstanceAttribute;
-                       if (obj == null)
-                               return false;
-
-                       return Instances == other.Instances;
-               }
-
-               public override int GetHashCode () {
-                       return (int) Instances;
-               }
-
-               #endregion
-       }
-}
diff --git a/mcs/class/System.Web/System.Web.UI/ThemeableAttribute.cs b/mcs/class/System.Web/System.Web.UI/ThemeableAttribute.cs
deleted file mode 100644 (file)
index 6dc7d59..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// System.Web.UI.ThemeableAttribute
-//
-// Authors:
-//     Sanjay Gupta (gsanjay@novell.com)
-//
-// (C) 2004 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
-// "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.
-//
-
-using System.ComponentModel;
-using System.Security.Permissions;
-
-namespace System.Web.UI 
-{
-       // CAS - no InheritanceDemand here as the class is sealed
-       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       // attributes
-       [AttributeUsage (AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
-       public sealed class ThemeableAttribute : Attribute {
-
-               bool themeable;
-               public ThemeableAttribute (bool themeable) 
-               {
-                       this.themeable = themeable;
-               }
-
-               public static readonly ThemeableAttribute Default = new ThemeableAttribute (true);
-
-               public static readonly ThemeableAttribute No = new ThemeableAttribute (false);
-
-               public static readonly ThemeableAttribute Yes = new ThemeableAttribute (true);
-               
-               public bool Themeable { 
-                       get { return themeable; } 
-               }
-
-               public override bool Equals (object obj)
-               {
-                       if (obj != null && obj is ThemeableAttribute) {
-                               ThemeableAttribute ta = (ThemeableAttribute) obj;
-                               return (this.themeable == ta.themeable);
-                       }
-                       return false;
-               }
-
-               public override int GetHashCode ()
-               {
-                       return this.themeable.GetHashCode ();
-               }
-
-               public override bool IsDefaultAttribute()
-               {
-                       return Equals (Default);
-               }
-
-               public static bool IsObjectThemeable (object obj)
-               {
-                       return IsTypeThemeable (obj.GetType ());
-               }
-
-               public static bool IsTypeThemeable (Type type)
-               {
-                       Object [] attributes = type.GetCustomAttributes (typeof (ThemeableAttribute), false);
-                       if (attributes.Length != 0) {
-                               foreach (Attribute attrib in attributes)
-                                       if (attrib is ThemeableAttribute)
-                                               return true;
-                       }
-                       return false;
-               }
-       }
-}
index ff0996c2375df7712e1301d5834e06872a7d42c6..353fcc7c1001fbfbb387be88779f731f0920cbef 100644 (file)
@@ -73,7 +73,7 @@ System.Web.Compilation/BuildManagerDirectoryBuilder.cs
 System.Web.Compilation/BuildManagerRemoveEntryEventHandler.cs
 System.Web.Compilation/BuildManagerHostUnloadEventArgs.cs
 System.Web.Compilation/BuildManagerHostUnloadEventHandler.cs
-System.Web.Compilation/BuildProviderAppliesToAttribute.cs
+../../../external/referencesource/System.Web/Compilation/BuildProviderAppliesToAttribute.cs
 ../../../external/referencesource/System.Web/Compilation/BuildProviderAppliesTo.cs
 System.Web.Compilation/BuildProviderGroup.cs
 System.Web.Compilation/BuildProviderResultFlags.cs
@@ -87,12 +87,12 @@ System.Web.Compilation/CompilerType.cs
 System.Web.Compilation/ConnectionStringsExpressionBuilder.cs
 System.Web.Compilation/DefaultResourceProviderFactory.cs
 System.Web.Compilation/DefaultResourceProvider.cs
-System.Web.Compilation/DesignTimeResourceProviderFactoryAttribute.cs
+../../../external/referencesource/System.Web/Compilation/DesignTimeResourceProviderFactoryAttribute.cs
 System.Web.Compilation/Directive.cs
 System.Web.Compilation/ExpressionBuilderContext.cs
 System.Web.Compilation/ExpressionBuilder.cs
-System.Web.Compilation/ExpressionEditorAttribute.cs
-System.Web.Compilation/ExpressionPrefixAttribute.cs
+../../../external/referencesource/System.Web/Compilation/ExpressionEditorAttribute.cs
+../../../external/referencesource/System.Web/Compilation/ExpressionPrefixAttribute.cs
 System.Web.Compilation/ForceCopyBuildProvider.cs
 System.Web.Compilation/GenericBuildProvider.cs
 System.Web.Compilation/GlobalAsaxCompiler.cs
@@ -525,8 +525,8 @@ System.Web.UI/CompiledBindableTemplateBuilder.cs
 System.Web.UI/CompiledTemplateBuilder.cs
 System.Web.UI/ComplexPropertyEntry.cs
 ../../../external/referencesource/System.Web/UI/ConflictOptions.cs
-System.Web.UI/ConstructorNeedsTagAttribute.cs
-System.Web.UI/ControlBuilderAttribute.cs
+../../../external/referencesource/System.Web/UI/ConstructorNeedsTagAttribute.cs
+../../../external/referencesource/System.Web/UI/ControlBuilderAttribute.cs
 System.Web.UI/ControlBuilder.cs
 System.Web.UI/ControlCachePolicy.cs
 System.Web.UI/ControlCollection.cs
@@ -534,13 +534,13 @@ System.Web.UI/Control.cs
 System.Web.UI/ControlSkin.cs
 System.Web.UI/ControlSkinDelegate.cs
 System.Web.UI/ControlValuePropertyAttribute.cs
-System.Web.UI/CssClassPropertyAttribute.cs
+../../../external/referencesource/System.Web/UI/CssClassPropertyAttribute.cs
 System.Web.UI/CssStyleCollection.cs
 System.Web.UI/DataBinder.cs
 System.Web.UI/DataBindingBuilder.cs
 System.Web.UI/DataBindingCollection.cs
 System.Web.UI/DataBinding.cs
-System.Web.UI/DataBindingHandlerAttribute.cs
+../../../external/referencesource/System.Web/UI/DataBindingHandlerAttribute.cs
 System.Web.UI/DataBoundLiteralControl.cs
 System.Web.UI/DataSourceCacheDurationConverter.cs
 ../../../external/referencesource/System.Web/UI/DataSourceCacheExpiry.cs
@@ -561,9 +561,9 @@ System.Web.UI/ExpressionBindingCollection.cs
 System.Web.UI/ExpressionBinding.cs
 System.Web.UI/ExtractTemplateValuesMethod.cs
 System.Web.UI/FileLevelUserControlBuilder.cs
-System.Web.UI/FileLevelControlBuilderAttribute.cs
+../../../external/referencesource/System.Web/UI/FileLevelControlBuilderAttribute.cs
 System.Web.UI/FileLevelPageControlBuilder.cs
-System.Web.UI/FilterableAttribute.cs
+../../../external/referencesource/System.Web/UI/FilterableAttribute.cs
 System.Web.UI/HiddenFieldPageStatePersister.cs
 System.Web.UI/HierarchicalDataSourceControl.cs
 System.Web.UI/HierarchicalDataSourceView.cs
@@ -618,7 +618,7 @@ System.Web.UI/ICheckBoxControl.cs
 ../../../external/referencesource/System.Web/UI/IDataItemContainer.cs
 ../../../external/referencesource/System.Web/UI/IDataSource.cs
 ../../../external/referencesource/System.Web/UI/IDataSourceViewSchemaAccessor.cs
-System.Web.UI/IDReferencePropertyAttribute.cs
+../../../external/referencesource/System.Web/UI/IDReferencePropertyAttribute.cs
 System.Web.UI/IEditableTextControl.cs
 ../../../external/referencesource/System.Web/UI/IExpressionsAccessor.cs
 ../../../external/referencesource/System.Web/UI/IFilterResolutionService.cs
@@ -658,7 +658,7 @@ System.Web.UI/MasterPage.cs
 System.Web.UI/MasterPageControlBuilder.cs
 System.Web.UI/MasterPageParser.cs
 System.Web.UI/MinimizableAttributeTypeConverter.cs
-System.Web.UI/NonVisualControlAttribute.cs
+../../../external/referencesource/System.Web/UI/NonVisualControlAttribute.cs
 System.Web.UI/ObjectConverter.cs
 System.Web.UI/ObjectPersistData.cs
 System.Web.UI/ObjectStateFormatter.cs
@@ -681,7 +681,7 @@ System.Web.UI/Pair.cs
 System.Web.UI/ParseChildrenAttribute.cs
 System.Web.UI/PartialCachingAttribute.cs
 System.Web.UI/PartialCachingControl.cs
-System.Web.UI/PersistChildrenAttribute.cs
+../../../external/referencesource/System.Web/UI/PersistChildrenAttribute.cs
 System.Web.UI/PersistenceModeAttribute.cs
 ../../../external/referencesource/System.Web/UI/PersistenceMode.cs
 System.Web.UI/PostBackOptions.cs
@@ -701,7 +701,7 @@ System.Web.UI/StateItem.cs
 System.Web.UI/StateManagedCollection.cs
 System.Web.UI/StaticPartialCachingControl.cs
 System.Web.UI/StringPropertyBuilder.cs
-System.Web.UI/SupportsEventValidationAttribute.cs
+../../../external/referencesource/System.Web/UI/SupportsEventValidationAttribute.cs
 System.Web.UI/TagPrefixAttribute.cs
 System.Web.UI/TemplateBuilder.cs
 System.Web.UI/TemplateContainerAttribute.cs
@@ -709,10 +709,10 @@ System.Web.UI/TemplateContentType.cs
 System.Web.UI/TemplateControl.cs
 System.Web.UI/TemplateControlParser.cs
 ../../../external/referencesource/System.Web/UI/TemplateInstance.cs
-System.Web.UI/TemplateInstanceAttribute.cs
+../../../external/referencesource/System.Web/UI/TemplateInstanceAttribute.cs
 System.Web.UI/TemplateParser.cs
 System.Web.UI/TemplatePropertyEntry.cs
-System.Web.UI/ThemeableAttribute.cs
+../../../external/referencesource/System.Web/UI/ThemeableAttribute.cs
 System.Web.UI/ThemeProvider.cs
 System.Web.UI/ToolboxDataAttribute.cs
 System.Web.UI/Triplet.cs
@@ -1222,7 +1222,7 @@ System.Web/XmlSiteMapProvider.cs
 
 ../../../external/referencesource/System.Web/IHtmlString.cs
 System.Web/HtmlString.cs
-System.Web/PreApplicationStartMethodAttribute.cs
+../../../external/referencesource/System.Web/PreApplicationStartMethodAttribute.cs
 
 System.Web.Caching/FileResponseElement.cs
 System.Web.Caching/HeaderElement.cs
@@ -1237,7 +1237,7 @@ System.Web.Configuration_2.0/VersionConverter.cs
 System.Web.Configuration_2.0/HttpCapabilitiesProvider.cs
 System.Web.Configuration_2.0/HttpCapabilitiesDefaultProvider.cs
 ../../../external/referencesource/System.Web/Compilation/FolderLevelBuildProviderAppliesTo.cs
-System.Web.Compilation/FolderLevelBuildProviderAppliesToAttribute.cs
+../../../external/referencesource/System.Web/Compilation/FolderLevelBuildProviderAppliesToAttribute.cs
 System.Web.Compilation/RouteUrlExpressionBuilder.cs
 System.Web.Compilation/RouteValueExpressionBuilder.cs
 System.Web.Security/MachineKey.cs
@@ -1245,7 +1245,7 @@ System.Web.Security/MachineKeyProtection.cs
 ../../../external/referencesource/System.Web/State/SessionStateBehavior.cs
 System.Web.Routing/PageRouteHandler.cs
 ../../../external/referencesource/System.Web/UI/ClientIDMode.cs
-System.Web.UI/DataKeyPropertyAttribute.cs
+../../../external/referencesource/System.Web/UI/DataKeyPropertyAttribute.cs
 System.Web.UI/FileLevelMasterPageControlBuilder.cs
 ../../../external/referencesource/System.Web/UI/IDataKeysControl.cs
 ../../../external/referencesource/System.Web/UI/ViewStateMode.cs
diff --git a/mcs/class/System.Web/System.Web/PreApplicationStartMethodAttribute.cs b/mcs/class/System.Web/System.Web/PreApplicationStartMethodAttribute.cs
deleted file mode 100644 (file)
index ad43cb5..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// PreApplicationStartMethodAttribute
-// 
-// Authors:
-//      Marek Habersack <mhabersack@novell.com>
-//
-//
-// Copyright (C) 2010 Novell, Inc (http://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.
-//
-using System;
-
-namespace System.Web
-{
-       [AttributeUsage (AttributeTargets.Assembly, AllowMultiple = false)]
-       public sealed class PreApplicationStartMethodAttribute : Attribute
-       {
-               public string MethodName { get; private set; }
-               public Type Type { get; private set; }
-               
-               public PreApplicationStartMethodAttribute (Type type, string methodName)
-               {
-                       this.MethodName = methodName;
-                       this.Type = type;
-               }
-       }
-}