Skip to content

Commit b434f83

Browse files
committed
Util/StringHelper.cs: Difficult to get InternalsVisibleTo to work properly in all build scenarios.
1 parent 34d938d commit b434f83

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/NHibernate/Util/StringHelper.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
using System.Runtime.CompilerServices;
21
using System;
32
using System.Collections;
43
using System.Collections.Generic;
54
using System.Linq;
65
using System.Text;
76

8-
[assembly: InternalsVisibleTo("NHibernate.Test")]
97

108
namespace NHibernate.Util
119
{
@@ -739,7 +737,7 @@ public static string[] ParseFilterParameterName(string filterParameterName)
739737
/// returning, newLineLength will be set to the number of characters in the matched line
740738
/// separator (1 if LF was found, 2 if CRLF was found).
741739
/// </summary>
742-
internal static int IndexOfAnyNewLine(this string str, int startIndex, out int newLineLength)
740+
public static int IndexOfAnyNewLine(this string str, int startIndex, out int newLineLength)
743741
{
744742
newLineLength = 0;
745743
var matchStartIdx = str.IndexOfAny(new[] {'\r', '\n'}, startIndex);
@@ -762,7 +760,7 @@ internal static int IndexOfAnyNewLine(this string str, int startIndex, out int n
762760
/// of characters matched in the line separator. It will be 2 if a CRLF matched, 1 if LF
763761
/// matched, and 0 if the index doesn't indicate (the start of) a line separator.
764762
/// </summary>
765-
internal static bool IsAnyNewLine(this string str, int index, out int newLineLength)
763+
public static bool IsAnyNewLine(this string str, int index, out int newLineLength)
766764
{
767765
if (string.Compare(str, index, "\r\n", 0, 2, StringComparison.OrdinalIgnoreCase) == 0)
768766
{

0 commit comments

Comments
 (0)