public IMethodPointer CreateMethodPointer(IActionContext action) { MethodPointer fe = (MethodPointer)this.Clone(); MemberComponentIdCustom.AdjustHost(fe); fe.Action = (IAction)action; return(fe); }
public bool IsSameMethod(IMethod method) { MethodPointer mp = method as MethodPointer; if (mp != null) { return(this.IsSameObjectRef(mp)); } return(false); }
public bool IsSameMethod(IMethodPointer pointer) { MethodPointer mp = pointer as MethodPointer; if (mp != null) { return(string.Compare(mp.MethodSignature, this.MethodSignature, StringComparison.Ordinal) == 0); } return(false); }
protected override void OnCopy(MemberPointer obj) { MethodPointer mp = obj as MethodPointer; if (mp != null) { this.SetMethodInfo(mp.MethodDef); _id = mp.MethodID; _returnType = mp._returnType; _paramTypes = mp._paramTypes; _prj = mp._prj; _parameterJS = mp._parameterJS; TypeParameters = mp.TypeParameters; } }