MoonSharpVisibleAttribute.cs 436 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace MoonSharp.Interpreter.Interop
  6. {
  7. [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
  8. public sealed class MoonSharpVisibleAttribute : Attribute
  9. {
  10. public bool Visible { get; private set; }
  11. public MoonSharpVisibleAttribute(bool visible)
  12. {
  13. Visible = visible;
  14. }
  15. }
  16. }