public MethodObject(string name, MethodInfo[] info) : base() { this.name = name; this.info = info; binder = new MethodBinder(); for (int i = 0; i < info.Length; i++) { binder.AddMethod((MethodInfo)info[i]); } }
private void _MethodObject(string name, MethodInfo[] info) { this.name = name; this.info = info; binder = new MethodBinder(); for (int i = 0; i < info.Length; i++) { MethodInfo item = (MethodInfo)info[i]; binder.AddMethod(item); if (item.IsStatic) { this.is_static = true; } } }
public MethodObject(Type type, string name, MethodInfo[] info, bool allow_threads = MethodBinder.DefaultAllowThreads) { this.type = type; this.name = name; this.infoList = new List <MaybeMethodInfo>(); binder = new MethodBinder(); foreach (MethodInfo item in info) { this.infoList.Add(item); binder.AddMethod(item); if (item.IsStatic) { this.is_static = true; } } binder.allow_threads = allow_threads; }