/// <summary> /// Set the sequence of characters that will end a row when write. /// </summary> public OptionsBuilder WithWriteRowEnding(WriteRowEnding writeRowEnding) { if (!Enum.IsDefined(Types.WriteRowEnding, writeRowEnding)) { Throw.ArgumentException($"Unexpected {nameof(Cesil.WriteRowEnding)} value: {writeRowEnding}", nameof(writeRowEnding)); } return(WithWriteRowEndingInternal(writeRowEnding)); }
// sometimes we want to skip validation in tests internal OptionsBuilder WithWriteRowEndingInternal(WriteRowEnding l) { WriteRowEnding = l; return(this); }