File: system\runtime\compilerservices\accessedthroughpropertyattribute.cs
Project: ndp\clr\src\bcl\mscorlib.csproj (mscorlib)
// ==++==
// 
//   Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// ==--==
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
namespace System.Runtime.CompilerServices 
{
    using System;
 
    [AttributeUsage(AttributeTargets.Field)]
[System.Runtime.InteropServices.ComVisible(true)]
    public sealed class AccessedThroughPropertyAttribute : Attribute
    {
        private readonly string propertyName;
 
        public AccessedThroughPropertyAttribute(string propertyName)
        {
            this.propertyName = propertyName;
        }
 
        public string PropertyName 
        {
            get 
            {
                return propertyName;
            }
        }
    }
}