AccessedThroughPropertyAttribute.cs 502 B

12345678910111213141516171819202122232425
  1. //
  2. // System.Runtime.CompilerServices.AccessedThroughPropertyAttribute.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Copyright, Ximian Inc.
  7. using System;
  8. namespace System.Runtime.CompilerServices {
  9. [AttributeUsage (AttributeTargets.Field)]
  10. public sealed class AccessedThroughPropertyAttribute : Attribute
  11. {
  12. string name;
  13. public AccessedThroughPropertyAttribute (string propertyName)
  14. {
  15. name = propertyName;
  16. }
  17. public string PropertyName {
  18. get { return name; }
  19. }
  20. }
  21. }