Exemplo n.º 1
0
 public IniFileCommentary(string content)
     : base(content)
 {
     if (IniFileSettings.CommentChars.Length == 0)
     {
         throw new NotSupportedException("Comments are disabled. Set the IniFileSettings.CommentChars property to turn them on.");
     }
     commentChar = IniFileSettings.startsWith(base.Content, IniFileSettings.CommentChars);
     if (base.Content.Length > commentChar.Length)
     {
         comment = base.Content.Substring(commentChar.Length);
     }
     else
     {
         comment = "";
     }
 }
Exemplo n.º 2
0
 public static bool IsLineValid(string testString)
 {
     return(IniFileSettings.startsWith(testString.TrimStart(), IniFileSettings.CommentChars) != null);
 }