public override void Visit(RtDelegateType node) { if (node == null) { return; } Write("("); SequentialVisit(node.Arguments, ", "); Write(") => "); Visit(node.Result); }
private bool CompareDelegate(RtDelegateType x, RtDelegateType y) { if (x.Arguments.Length != y.Arguments.Length) { return(false); } if (!Equals(x.Result, y.Result)) { return(false); } for (int i = 0; i < x.Arguments.Length; i++) { if (!Equals(x.Arguments[i], y.Arguments[i])) { return(false); } } return(true); }
public abstract void Visit(RtDelegateType node);
public override void Visit(RtDelegateType node) { throw new NotImplementedException(); }