//- ~GetParameterData -// internal static ParameterDataList GetWebDomainParameterData(ParameterCollection collection) { List<Configuration.ParameterElement> elementList = collection.ToList(); var dataList = new ParameterDataList(); foreach (Configuration.ParameterElement element in elementList) { //+ parameter String value = ProcessSingleSettingToken(element.Value); dataList.Add(new ParameterData { Category = element.Category, Name = element.Name, Value = value }); } //+ return dataList; }
//- ~GetParameterData -// internal static ParameterDataList GetComponentParameterData(ComponentParameterCollection collection) { List<Nalarium.Configuration.AppConfig.Parameter.ParameterElement> elementList = collection.ToList(); var dataList = new ParameterDataList(); foreach (var element in elementList) { //+ parameter String value = ProcessSingleSettingToken(element.Value); dataList.Add(new ParameterData { Name = element.Name, Value = value }); } //+ return dataList; }