internal object GroupByKey(ShowBy showBy) { switch (showBy) { case ShowBy.all: return("all"); case ShowBy.hla: return(Hla); case ShowBy.length: return(NEC.E.Length); case ShowBy.hlaAndLength: return(new Pair <Hla, int>(Hla, NEC.E.Length)); case ShowBy.doNotGroup: return(this); default: SpecialFunctions.CheckCondition(false, "Don't know how to showBy " + showBy.ToString()); return(null); } }