Skip to content

Commit

Permalink
LineEndingMode - Support TypeConverter on NETSTANDARD1_3 (#4552)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Sep 6, 2021
1 parent 6578150 commit cafe5b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/NLog/Targets/LineEndingMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ namespace NLog.Targets
/// <summary>
/// Line ending mode.
/// </summary>
#if !NETSTANDARD1_3
[TypeConverter(typeof(LineEndingModeConverter))]
#endif
public sealed class LineEndingMode : IEquatable<LineEndingMode>
{
/// <summary>
Expand Down Expand Up @@ -225,7 +223,6 @@ public bool Equals(LineEndingMode other)
return ReferenceEquals(this, other) || string.Equals(_newLineCharacters, other?._newLineCharacters);
}

#if !NETSTANDARD1_3
/// <summary>
/// Provides a type converter to convert <see cref="LineEndingMode"/> objects to and from other representations.
/// </summary>
Expand Down Expand Up @@ -260,6 +257,5 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return name != null ? FromString(name) : base.ConvertFrom(context, culture, value);
}
}
#endif
}
}

0 comments on commit cafe5b6

Please sign in to comment.