public override bool Equals(object obj) { if (obj is Function) { Function f = obj as Function; return(KeyHandler.Equals(f.KeyHandler)); } return(false); }