private SelectorParameter loadDegrees(TaggableQueue <object, IkadnBaseObject> data) { this.degreeOptions = new DegreeOption[data.CountOf(DegreeKey)]; var parameterOptions = new Dictionary <int, string>(); for (int i = 0; i < degreeOptions.Length; i++) { degreeOptions[i] = new DegreeOption(data.Dequeue(DegreeKey).To <IkonComposite>()); parameterOptions.Add(i, degreeOptions[i].Name); } return(new SelectorParameter(LanguageContext, DegreeKey, parameterOptions, (int)Math.Ceiling(parameterOptions.Count / 2.0))); }