--
System.Reflection.PropertyInfo[] cfgItemProperties = cfgItem.GetType().GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public); SortedDictionary<string, string> sdCfgItem = new SortedDictionary<string, string>(); foreach (System.Reflection.PropertyInfo item in cfgItemProperties) { string name = item.Name;