public override void Methods(object obj,InjectMethod[] InjectMethods) { if(InjectMethods != null && InjectMethods.Count() > 0) { foreach(var m in InjectMethods) { MethodInfo methodInfo = obj.GetType().GetMethod(m.Name,BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy); methodInfo.Invoke(obj,m.Argments); } } }
public BindingTarget(Type type,InjectProperty[] property,InjectMethod[] method) { this.type = type; this.property = property; this.method = method; }
public virtual void Methods(object obj,InjectMethod[] InjectMethods) { }