IniInlineCommentMode Enum

Where a comment can start other than at the beginning of a line.

public enum IniInlineCommentMode

Remarks

A line whose first character other than whitespace is ; or # is always a comment. What differs between INI dialects is whether those characters also start a comment after a key, a value, or a section name.

Fields

NameValueDescription
None0Only whole lines are comments: url=http://host/#top ; note has the value http://host/#top ; note.
AfterWhitespace1; or # starts a comment when whitespace precedes it: url=http://host/#top ; note has the value http://host/#top. This is what Python's configparser does with inline comment prefixes.
Anywhere2; or # starts a comment wherever it is: password=abc#123 has the value abc.