コード例 #1
0
ファイル: IniElement.cs プロジェクト: TinSyner/github_spider
 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
ファイル: IniElement.cs プロジェクト: TinSyner/github_spider
 public static bool IsLineValid(string testString)
 {
     return(IniSettings.StartsWith(testString.TrimStart(), IniSettings.CommentChars) != null);
 }