2022-01-05 07:24:23 -05:00
|
|
|
|
using System;
|
2022-05-09 07:23:27 -04:00
|
|
|
|
using JetBrains.Annotations;
|
2022-01-05 07:24:23 -05:00
|
|
|
|
|
|
|
|
|
namespace TriInspector
|
|
|
|
|
{
|
2022-06-03 08:16:23 -04:00
|
|
|
|
public abstract class TriPropertyHideProcessor : TriPropertyExtension
|
2022-01-05 07:24:23 -05:00
|
|
|
|
{
|
|
|
|
|
internal Attribute RawAttribute { get; set; }
|
|
|
|
|
|
2022-05-09 07:23:27 -04:00
|
|
|
|
[PublicAPI]
|
2022-01-05 07:24:23 -05:00
|
|
|
|
public abstract bool IsHidden(TriProperty property);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract class TriPropertyHideProcessor<TAttribute> : TriPropertyHideProcessor
|
2022-08-03 04:18:28 -04:00
|
|
|
|
where TAttribute : Attribute
|
2022-01-05 07:24:23 -05:00
|
|
|
|
{
|
2022-05-11 13:28:20 -04:00
|
|
|
|
[PublicAPI]
|
|
|
|
|
public TAttribute Attribute => (TAttribute) RawAttribute;
|
2022-01-05 07:24:23 -05:00
|
|
|
|
}
|
|
|
|
|
}
|