예제 #1
0
 public IniCommentary(string content) : base(content)
 {
     if (IniSettings.CommentChars.Length == 0)
     {
         throw new NotSupportedException("Comments are disabled. Set the IniSettings.CommentChars property to turn them on.");
     }
     _commentChar = IniSettings.StartsWith(Content, IniSettings.CommentChars);
     _comment     = Content.Length > _commentChar.Length ? Content.Substring(_commentChar.Length) : "";
 }
예제 #2
0
 public static bool IsLineValid(string testString)
 {
     return(IniSettings.StartsWith(testString.TrimStart(), IniSettings.CommentChars) != null);
 }