using System; using System.Reflection; namespace Nethereum.ABI.FunctionEncoding.Attributes { [AttributeUsage(AttributeTargets.Class)] public class FunctionOutputAttribute : Attribute { public static FunctionOutputAttribute GetAttribute() { var type = typeof(T); return type.GetTypeInfo().GetCustomAttribute(true); } public static bool IsFunctionType() { return GetAttribute() != null; } } }