示例#1
0
        static string GetCheckListBoxState(CheckedListBox list)
        {
            StringBuilder text = new StringBuilder();

            foreach (string s in list.CheckedItems)
            {
                if (text.Length > 0)
                {
                    text.Append(",");
                }
                text.Append(s);
            }

            return(list.GetType().ToString() + ":"
                   + text.ToString());
        }