예제 #1
0
        /// <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));
        }
예제 #2
0
 // sometimes we want to skip validation in tests
 internal OptionsBuilder WithWriteRowEndingInternal(WriteRowEnding l)
 {
     WriteRowEnding = l;
     return(this);
 }