public ActionResult Index() { InstanceResult <Comment> result = new InstanceResult <Comment>(); result.resultList = repoCom.RepComList(); return(View(result.resultList.ProcessResult)); }
protected void OnInstanceFound(InstanceResult result) { InstanceFoundHandler temp = InstanceFound; if (temp != null) { temp(result); } }
private void AddResult(HashSet <InstanceResult> instances, FieldInfo f, object fieldValue) { var result = new InstanceResult() { Instance = fieldValue, Origin = f }; if (!instances.Contains(result)) { // instance found instances.Add(result); OnInstanceFound(result); } }