using System; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class ShowMethod : AccessModifierMethodAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; public ShowMethod(string fieldName) { this.fieldName = fieldName; } public ShowMethod(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; useFieldValue = true; } } }