/// <summary> /// Returns a string where \n alone are normalized to \r\n. /// </summary> /// <param name="this">This string.</param> /// <returns>Normalized string.</returns> public static string NormalizeEOLToCRLF(this string @this) { return(EOLNormalizer.ToCRLF(@this)); }
/// <summary> /// Returns a string where \r\n or \n alone are normalized to <see cref="Environment.NewLine"/>. /// </summary> /// <param name="this">This string.</param> /// <returns>Normalized string.</returns> public static string NormalizeEOL(this string @this) { return(EOLNormalizer.ToEnvironment(@this)); }