9 namespace Core.TypeCast
12 using System.Diagnostics.CodeAnalysis;
13 using System.Reflection;
14 using System.Runtime.CompilerServices;
56 [AttributeUsage(AttributeTargets.Method, AllowMultiple =
false, Inherited =
false)]
70 this.LoadOnDemand = loadOnDemand;
72 this.IsStatic = isStatic;
73 this.PassInstance = passInstance;
80 public Type BaseType {
get;
set; }
112 public bool LoadOnDemand {
get; }
117 public bool IsStatic {
get; }
139 public string Name {
get; }
145 public bool PassInstance {
get; }
153 public override string ToString()
155 return $
"[Sta:{this.IsStatic},LoD:{this.LoadOnDemand},BaTy:{this.BaseType},Name:{this.Name}]";
ConverterMethodAttribute(bool isStatic=true, bool loadOnDemand=true, string name="", bool passInstance=false)
Initializes a new instance of the ConverterMethodAttribute class, to declare a custom Converter funct...
Use ConverterMethodAttribute to declare a method in an arbitrary class as a logical Converter functio...