* Type.cs: corrected property IsSerializable. It should always return true for enums...
[mono.git] / mcs / class / corlib / System.Runtime.CompilerServices / AccessedThroughPropertyAttribute.cs
1 //
2 // System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.cs
3 //
4 // Author: Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Copyright, Ximian Inc.
7
8 using System;
9
10 namespace System.Runtime.CompilerServices {
11
12         [AttributeUsage (AttributeTargets.Field)]
13         public sealed class AccessedThroughPropertyAttribute : Attribute
14         {
15                 string name;
16                 public AccessedThroughPropertyAttribute (string propertyName)
17                 {
18                         name = propertyName;
19                 }
20
21                 public string PropertyName {
22                         get { return name; }
23                 }
24         }
25 }