public string GenerateContributionComment(PerformanceOpinion ptfPerformanceOpinion, SortedDictionary <double, string> contributions) { var lenght = contributions.Count; var keys = contributions.Keys; var keysArray = new double[keys.Count]; keys.CopyTo(keysArray, 0); var values = contributions.Values; var valuesArray = new string[values.Count]; values.CopyTo(valuesArray, 0); var underlyingPerformanceOpinion = this.GetPerformanceOpinions(keysArray); return((string)this.ContribCommentMap[ptfPerformanceOpinion].DynamicInvoke(underlyingPerformanceOpinion, keysArray, lenght, valuesArray)); }
public string GeneratePerformanceComment(double periodPerformance, PerformanceOpinion ptfPerformanceOpinion) { return((string)this.perfCommentMap[ptfPerformanceOpinion].DynamicInvoke(periodPerformance)); }
private static string ToAdjective(PerformanceOpinion performanceOpinion) { return(opinionAdjectiveMap[performanceOpinion]); }