+ /// <summary>\r
+ /// Parses a comment of an INI file.\r
+ /// </summary>\r
+ /// <param name="line">Text.</param>\r
+ /// <returns>The comment, or null if parsing failed.</returns>\r
+ public static string IniComment(string line)\r
+ {\r
+ Match match = Regex.Match(line, @"^;\s*(.*)\s*$");\r
+ if (match.Success) return match.Groups[1].Value;\r
+ return null;\r
+ }\r
+\r