Remove excessive shortcut key matching in ToolStrip
[mono.git] / mcs / class / System.Web.Mvc / System.Web.Mvc / ParameterDescriptor.cs
1 /* ****************************************************************************\r
2  *\r
3  * Copyright (c) Microsoft Corporation. All rights reserved.\r
4  *\r
5  * This software is subject to the Microsoft Public License (Ms-PL). \r
6  * A copy of the license can be found in the license.htm file included \r
7  * in this distribution.\r
8  *\r
9  * You must not remove this notice, or any other, from this software.\r
10  *\r
11  * ***************************************************************************/\r
12 \r
13 namespace System.Web.Mvc {\r
14     using System;\r
15     using System.Diagnostics.CodeAnalysis;\r
16     using System.Reflection;\r
17 \r
18     public abstract class ParameterDescriptor : ICustomAttributeProvider {\r
19 \r
20         private static readonly EmptyParameterBindingInfo _emptyBindingInfo = new EmptyParameterBindingInfo();\r
21 \r
22         public abstract ActionDescriptor ActionDescriptor {\r
23             get;\r
24         }\r
25 \r
26         public virtual ParameterBindingInfo BindingInfo {\r
27             get {\r
28                 return _emptyBindingInfo;\r
29             }\r
30         }\r
31 \r
32         public abstract string ParameterName {\r
33             get;\r
34         }\r
35 \r
36         public abstract Type ParameterType {\r
37             get;\r
38         }\r
39 \r
40         [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]\r
41         public virtual object[] GetCustomAttributes(bool inherit) {\r
42             return GetCustomAttributes(typeof(object), inherit);\r
43         }\r
44 \r
45         [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]\r
46         public virtual object[] GetCustomAttributes(Type attributeType, bool inherit) {\r
47             if (attributeType == null) {\r
48                 throw new ArgumentNullException("attributeType");\r
49             }\r
50 \r
51             return (object[])Array.CreateInstance(attributeType, 0);\r
52         }\r
53 \r
54         [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]\r
55         public virtual bool IsDefined(Type attributeType, bool inherit) {\r
56             if (attributeType == null) {\r
57                 throw new ArgumentNullException("attributeType");\r
58             }\r
59 \r
60             return false;\r
61         }\r
62 \r
63         private sealed class EmptyParameterBindingInfo : ParameterBindingInfo {\r
64         }\r
65 \r
66     }\r
67 }\r