Skip to content

Commit 6bbe515

Browse files
authored
Internalize more client extension methods (#266)
1 parent 46e8977 commit 6bbe515

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Exceptionless/Demystifier/ExceptionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace System.Diagnostics
1010
{
11-
public static class ExceptionExtensions
11+
internal static class ExceptionExtensions
1212
{
1313
private static readonly FieldInfo? stackTraceString = typeof(Exception).GetField("_stackTraceString", BindingFlags.Instance | BindingFlags.NonPublic);
1414

src/Exceptionless/Extensions/StringExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Exceptionless.Extensions {
77
public static class StringExtensions {
8-
public static string ToLowerUnderscoredWords(this string value) {
8+
internal static string ToLowerUnderscoredWords(this string value) {
99
var builder = new StringBuilder(value.Length + 10);
1010
for (int index = 0; index < value.Length; index++) {
1111
char c = value[index];
@@ -29,7 +29,7 @@ public static bool AnyWildcardMatches(this string value, IEnumerable<string> pat
2929
return patternsToMatch.Any(pattern => IsPatternMatch(value, pattern, ignoreCase));
3030
}
3131

32-
public static bool IsPatternMatch(this string value, string pattern, bool ignoreCase = true) {
32+
internal static bool IsPatternMatch(this string value, string pattern, bool ignoreCase = true) {
3333
if (pattern == null)
3434
return value == null;
3535

@@ -60,7 +60,7 @@ public static bool IsPatternMatch(this string value, string pattern, bool ignore
6060
return String.Equals(value, pattern, comparison);
6161
}
6262

63-
public static string[] SplitAndTrim(this string input, params char[] separator) {
63+
internal static string[] SplitAndTrim(this string input, params char[] separator) {
6464
if (String.IsNullOrEmpty(input))
6565
return new string[0];
6666

@@ -71,7 +71,7 @@ public static string[] SplitAndTrim(this string input, params char[] separator)
7171
return result;
7272
}
7373

74-
public static bool ToBoolean(this string input, bool @default = false) {
74+
internal static bool ToBoolean(this string input, bool @default = false) {
7575
if (String.IsNullOrEmpty(input))
7676
return @default;
7777

@@ -90,14 +90,14 @@ public static bool ToBoolean(this string input, bool @default = false) {
9090
return @default;
9191
}
9292

93-
public static string ToHex(this IEnumerable<byte> bytes) {
93+
internal static string ToHex(this IEnumerable<byte> bytes) {
9494
var sb = new StringBuilder();
9595
foreach (byte b in bytes)
9696
sb.Append(b.ToString("x2"));
9797
return sb.ToString();
9898
}
9999

100-
public static bool IsValidIdentifier(this string value) {
100+
internal static bool IsValidIdentifier(this string value) {
101101
if (value == null)
102102
return false;
103103

0 commit comments

Comments
 (0)