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) : ""; }
public static bool IsLineValid(string testString) { return(IniSettings.StartsWith(testString.TrimStart(), IniSettings.CommentChars) != null); }