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