Jelajahi Sumber

[System.Web] 20 attributes from reference source

kasthack 10 tahun lalu
induk
melakukan
18b1d72354
20 mengubah file dengan 19 tambahan dan 1289 penghapusan
  1. 0 50
      mcs/class/System.Web/System.Web.Compilation/BuildProviderAppliesToAttribute.cs
  2. 0 67
      mcs/class/System.Web/System.Web.Compilation/DesignTimeResourceProviderFactoryAttribute.cs
  3. 0 69
      mcs/class/System.Web/System.Web.Compilation/ExpressionEditorAttribute.cs
  4. 0 51
      mcs/class/System.Web/System.Web.Compilation/ExpressionPrefixAttribute.cs
  5. 0 44
      mcs/class/System.Web/System.Web.Compilation/FolderLevelBuildProviderAppliesToAttribute.cs
  6. 0 55
      mcs/class/System.Web/System.Web.UI/ConstructorNeedsTagAttribute.cs
  7. 0 73
      mcs/class/System.Web/System.Web.UI/ControlBuilderAttribute.cs
  8. 0 43
      mcs/class/System.Web/System.Web.UI/CssClassPropertyAttribute.cs
  9. 0 81
      mcs/class/System.Web/System.Web.UI/DataBindingHandlerAttribute.cs
  10. 0 58
      mcs/class/System.Web/System.Web.UI/DataKeyPropertyAttribute.cs
  11. 0 83
      mcs/class/System.Web/System.Web.UI/FileLevelControlBuilderAttribute.cs
  12. 0 100
      mcs/class/System.Web/System.Web.UI/FilterableAttribute.cs
  13. 0 64
      mcs/class/System.Web/System.Web.UI/IDReferencePropertyAttribute.cs
  14. 0 72
      mcs/class/System.Web/System.Web.UI/NonVisualControlAttribute.cs
  15. 0 92
      mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs
  16. 0 43
      mcs/class/System.Web/System.Web.UI/SupportsEventValidationAttribute.cs
  17. 0 88
      mcs/class/System.Web/System.Web.UI/TemplateInstanceAttribute.cs
  18. 0 92
      mcs/class/System.Web/System.Web.UI/ThemeableAttribute.cs
  19. 19 19
      mcs/class/System.Web/System.Web.dll.sources
  20. 0 45
      mcs/class/System.Web/System.Web/PreApplicationStartMethodAttribute.cs

+ 0 - 50
mcs/class/System.Web/System.Web.Compilation/BuildProviderAppliesToAttribute.cs

@@ -1,50 +0,0 @@
-//
-// System.Web.Compilation.BuildProviderAppliesToAttribute
-//
-// Authors:
-//	Chris Toshok ([email protected])
-//
-// (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; }
-		}
-	}
-
-}
-
-

+ 0 - 67
mcs/class/System.Web/System.Web.Compilation/DesignTimeResourceProviderFactoryAttribute.cs

@@ -1,67 +0,0 @@
-//
-// System.Web.Compilation.DesignTimeResourceProviderFactoryAttribute
-//
-// Authors:
-//	Chris Toshok ([email protected])
-//
-// (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; }
-		}
-
-	}
-
-}
-
-

+ 0 - 69
mcs/class/System.Web/System.Web.Compilation/ExpressionEditorAttribute.cs

@@ -1,69 +0,0 @@
-//
-// System.Web.Compilation.ExpressionEditorAttribute
-//
-// Authors:
-//	Chris Toshok ([email protected])
-//
-// (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 ();
-		}
-
-	}
-}
-
-

+ 0 - 51
mcs/class/System.Web/System.Web.Compilation/ExpressionPrefixAttribute.cs

@@ -1,51 +0,0 @@
-//
-// System.Web.Compilation.ExpressionPrefixAttribute
-//
-// Authors:
-//	Chris Toshok ([email protected])
-//
-// (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; }
-		}
-	}
-}
-
-

+ 0 - 44
mcs/class/System.Web/System.Web.Compilation/FolderLevelBuildProviderAppliesToAttribute.cs

@@ -1,44 +0,0 @@
-//
-// Authors:
-//   Marek Habersack <[email protected]>
-//
-// (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;
-		}
-	}
-}

+ 0 - 55
mcs/class/System.Web/System.Web.UI/ConstructorNeedsTagAttribute.cs

@@ -1,55 +0,0 @@
-//
-// System.Web.UI.ConstructorNeedsTagAttribute.cs
-//
-// Duncan Mak  ([email protected])
-//
-// (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; }
-		}
-	}
-}

+ 0 - 73
mcs/class/System.Web/System.Web.UI/ControlBuilderAttribute.cs

@@ -1,73 +0,0 @@
-//
-// System.Web.UI.ControlBuilderAttribute.cs
-//
-// Authors:
-// 	Duncan Mak  ([email protected])
-// 	Gonzalo Paniagua Javier ([email protected])
-//	Sebastien Pouliot  <[email protected]>
-//
-// (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);
-		}
-	}
-}
-

+ 0 - 43
mcs/class/System.Web/System.Web.UI/CssClassPropertyAttribute.cs

@@ -1,43 +0,0 @@
-//
-// System.Web.UI.CssClassPropertyAttribute
-//
-// Authors:
-//	Atsushi Enomoto  <[email protected]>
-//
-// (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 ()
-		{
-		}
-	}
-}

+ 0 - 81
mcs/class/System.Web/System.Web.UI/DataBindingHandlerAttribute.cs

@@ -1,81 +0,0 @@
-//
-// System.Web.UI.WebControls.DataBindingHandlerAttribute class
-//
-// Author: Duncan Mak ([email protected])
-//
-// 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; }
-		}
-	}
-}

+ 0 - 58
mcs/class/System.Web/System.Web.UI/DataKeyPropertyAttribute.cs

@@ -1,58 +0,0 @@
-//
-// Authors:
-//	Marek Habersack <[email protected]>
-//
-// (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 ();
-		}		
-	}
-}

+ 0 - 83
mcs/class/System.Web/System.Web.UI/FileLevelControlBuilderAttribute.cs

@@ -1,83 +0,0 @@
-//
-// System.Web.UI.FileLevelControlBuilderAttribute.cs
-//
-// Authors:
-//     Arina Itkes ([email protected])
-//     Marek Habersack ([email protected])
-//
-// (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;
-		}
-	}
-}

+ 0 - 100
mcs/class/System.Web/System.Web.UI/FilterableAttribute.cs

@@ -1,100 +0,0 @@
-//
-// System.Web.UI.FilterableAttribute
-//
-// Authors:
-//	Sanjay Gupta ([email protected])
-//
-// (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;
-		}
-	}
-}

+ 0 - 64
mcs/class/System.Web/System.Web.UI/IDReferencePropertyAttribute.cs

@@ -1,64 +0,0 @@
-//
-// System.Web.UI.IDReferencePropertyAttribute.cs
-//
-// Authors:
-//      Sanjay Gupta ([email protected])
-//
-// (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; }
-		}
-	}
-}
-

+ 0 - 72
mcs/class/System.Web/System.Web.UI/NonVisualControlAttribute.cs

@@ -1,72 +0,0 @@
-//
-// System.Web.UI.WebControls.NonVisualControlAttribute.cs
-//
-// Authors:
-//	Lluis Sanchez Gual ([email protected])
-//
-// (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; }
-		}
-	}
-}

+ 0 - 92
mcs/class/System.Web/System.Web.UI/PersistChildrenAttribute.cs

@@ -1,92 +0,0 @@
-//
-// System.Web.UI.PersistChildrenAttribute.cs
-//
-// Duncan Mak  ([email protected])
-//
-// (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);
-		}
-	}
-}

+ 0 - 43
mcs/class/System.Web/System.Web.UI/SupportsEventValidationAttribute.cs

@@ -1,43 +0,0 @@
-//
-// System.Web.UI.SupportsEventValidationAttribute class
-//
-// Author:
-//	Sebastien Pouliot  <[email protected]>
-//
-// 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 ()
-		{
-		}
-	}
-}

+ 0 - 88
mcs/class/System.Web/System.Web.UI/TemplateInstanceAttribute.cs

@@ -1,88 +0,0 @@
-//
-// System.Web.UI.TemplateInstanceAttribute.cs
-//
-// Noam Lampert  ([email protected])
-//
-//
-// 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
-	}
-}

+ 0 - 92
mcs/class/System.Web/System.Web.UI/ThemeableAttribute.cs

@@ -1,92 +0,0 @@
-//
-// System.Web.UI.ThemeableAttribute
-//
-// Authors:
-//	Sanjay Gupta ([email protected])
-//
-// (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;
-		}
-	}
-}

+ 19 - 19
mcs/class/System.Web/System.Web.dll.sources

@@ -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

+ 0 - 45
mcs/class/System.Web/System.Web/PreApplicationStartMethodAttribute.cs

@@ -1,45 +0,0 @@
-//
-// PreApplicationStartMethodAttribute
-// 
-// Authors:
-//      Marek Habersack <[email protected]>
-//
-//
-// 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;
-		}
-	}
-}