<PackageReference Include="NLog" Version="6.1.4" />

NLog.Targets.LineEndingMode

public sealed class LineEndingMode : IEquatable<LineEndingMode>
Line ending mode.

Provides a type converter to convert LineEndingMode objects to and from other representations.

public static readonly LineEndingMode CR

Insert CR character (ASCII 13) after each line.

public static readonly LineEndingMode CRLF

Insert CR LF sequence (ASCII 13, ASCII 10) after each line.

public static readonly LineEndingMode Default

Insert platform-dependent NewLine sequence after each line.

public static readonly LineEndingMode LF

Insert LF character (ASCII 10) after each line.

public static readonly LineEndingMode None

Do not insert any line ending.

public static readonly LineEndingMode Null

Insert null terminator (ASCII 0) after each line.

public string Name { get; }

Gets the name of the LineEndingMode instance.

public string NewLineCharacters { get; }

Gets the new line characters (value) of the LineEndingMode instance.

public static LineEndingMode FromString(string name)

Returns the LineEndingMode that corresponds to the supplied name.

public static bool op_Equality(LineEndingMode mode1, LineEndingMode mode2)

Compares two LineEndingMode objects and returns a value indicating whether the first one is equal to the second one.

public static bool op_Inequality(LineEndingMode mode1, LineEndingMode mode2)

Compares two LineEndingMode objects and returns a value indicating whether the first one is not equal to the second one.

public bool Equals(LineEndingMode other)

Indicates whether the current object is equal to another object of the same type.