예제 #1
0
        public XElement ToXml()
        {
            XElement RetVal = new XElement("groups");

            foreach (TConfigGroup ConfigGroupItem in this)
            {
                RetVal.Add(ConfigGroupItem.ToXml());
            }
            return(RetVal);
        }
예제 #2
0
        public override string ToString()
        {
            StringBuilder RetVal = new StringBuilder();

            foreach (TConfigGroup ConfigGroupItem in this)
            {
                RetVal.AppendLine(ConfigGroupItem.ToString());
            }
            return(RetVal.ToString().Trim('\n'));
        }