private static List <IHashableFeature> CreateFeatureSet(Dictionary <IHashableFeature, int> featureTable) { List <IHashableFeature> featureSet = SpecialFunctions.CreateAllocatedList <IHashableFeature>(featureTable.Count); foreach (KeyValuePair <IHashableFeature, int> featureAndNumber in featureTable) { featureSet.Insert(featureAndNumber.Value, featureAndNumber.Key); } return(featureSet); }