[reflection] Coop handles icalls in System.Reflection and System.RuntimeTypeHandle...
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / FeatureAttribute.cs
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4
5 namespace System.Activities.Presentation
6 {
7     using System.Runtime;
8     using System.Diagnostics.CodeAnalysis;
9
10     [Fx.Tag.XamlVisible(false)]
11     [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
12     sealed class FeatureAttribute : Attribute
13     {
14         Type type;
15
16         public FeatureAttribute(Type type)
17         {
18             Fx.Assert(type != null, "type should not be null");
19
20             this.type = type;
21         }
22
23         [SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods", Justification = "By design.")]
24         public Type Type
25         {
26             get
27             {
28                 return this.type;
29             }
30         }
31
32         public override object TypeId
33         {
34             get
35             {
36                 return this.type;
37             }
38         }
39     }
40 }