Esempio n. 1
0
        public override string ToString( )
        {
            //Yuck
            string configNodeString = ConfigNodeWriter.ConfigNodeToString(this);

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.AppendLine("{");
            using (System.IO.StringReader sr = new System.IO.StringReader(configNodeString)) {
                string currentLine;
                while ((currentLine = sr.ReadLine( )) != null)
                {
                    sb.Append('\t');
                    sb.AppendLine(currentLine);
                }
            }
            sb.AppendLine("}");
            return(sb.ToString( ));
        }
Esempio n. 2
0
 public bool Save(string fileFullName, string header)
 {
     return(ConfigNodeWriter.FileToConfigNode(this, fileFullName, header));
 }