// Deep copy constructor. internal IniOptions(IniOptions options) { this.encoding = options.encoding; this.CommentStarter = options.CommentStarter; this.Compression = options.Compression; this.EncryptionPassword = options.EncryptionPassword; this.KeyDelimiter = options.KeyDelimiter; this.KeyDuplicate = options.KeyDuplicate; this.KeyNameCaseSensitive = options.KeyNameCaseSensitive; this.KeySpaceAroundDelimiter = options.KeySpaceAroundDelimiter; this.SectionDuplicate = options.SectionDuplicate; this.SectionNameCaseSensitive = options.SectionNameCaseSensitive; this.SectionWrapper = options.SectionWrapper; }
/// <summary> /// Initializes a new instance of the <see cref="IniOptions"/> class. /// </summary> public IniOptions() { this.encoding = Encoding.ASCII; this.CommentStarter = IniCommentStarter.Semicolon; this.Compression = false; this.EncryptionPassword = null; this.KeyDelimiter = IniKeyDelimiter.Equal; this.KeyDuplicate = IniDuplication.Allowed; this.KeyNameCaseSensitive = false; this.KeySpaceAroundDelimiter = false; this.SectionDuplicate = IniDuplication.Allowed; this.SectionNameCaseSensitive = false; this.SectionWrapper = IniSectionWrapper.SquareBrackets; }