using System; using JD.TeaBoxAddinSystem.Addins.Internal; namespace JD.TeaBoxAddinSystem.Addins.Attributes { /// /// Let a custom class use a addin objects to convert a string to the custom value. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)] public abstract class AddinConverterAttribute : Attribute { /// /// Converts the string to the type decorated by the attribute. /// /// /// /// /// public abstract object Convert(Type expectedType, string value, Node node); } }