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.

CarriageReturn

The previous enumeration value name for a CR. Switch usage to the shorter CR value name instead.

CarriageReturnNewline

The previous enumeration value name for a CRLF. Switch usage to the shorter CRLF value name instead.

LF

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

Newline

The previous enumeration value name for a LF. Switch usage to the shorter LF value name instead.

Extension Methods