In This Article

LineTerminator Enum

Specifies a kind of line terminator.

public enum LineTerminator

Fields

Name Description
CR

A single carriage return (CR) character with ASCII value 13, or \r in C#. This format was typically used on classic Mac OS (versions 9 and earlier) machines, but is no longer common.

CRLF

A carriage return (CR) character followed by a newline (LF) character, or \r\n in C#. This format is typically used on Windows machines.

LF

A single newline (LF) character with ASCII value 10, or \n in C#. This format is typically used on UNIX and macOS machines.

Extension Methods