Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exceptionless/Demystifier/ExceptionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace System.Diagnostics
{
public static class ExceptionExtensions
internal static class ExceptionExtensions
{
private static readonly FieldInfo? stackTraceString = typeof(Exception).GetField("_stackTraceString", BindingFlags.Instance | BindingFlags.NonPublic);

Expand Down
12 changes: 6 additions & 6 deletions src/Exceptionless/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Exceptionless.Extensions {
public static class StringExtensions {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ejsmith We couldn't internalize the whole class because AnyWildCardMatches is used by at least 4 client implementations.

public static string ToLowerUnderscoredWords(this string value) {
internal static string ToLowerUnderscoredWords(this string value) {
var builder = new StringBuilder(value.Length + 10);
for (int index = 0; index < value.Length; index++) {
char c = value[index];
Expand All @@ -29,7 +29,7 @@ public static bool AnyWildcardMatches(this string value, IEnumerable<string> pat
return patternsToMatch.Any(pattern => IsPatternMatch(value, pattern, ignoreCase));
}

public static bool IsPatternMatch(this string value, string pattern, bool ignoreCase = true) {
internal static bool IsPatternMatch(this string value, string pattern, bool ignoreCase = true) {
if (pattern == null)
return value == null;

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

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

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

public static bool ToBoolean(this string input, bool @default = false) {
internal static bool ToBoolean(this string input, bool @default = false) {
if (String.IsNullOrEmpty(input))
return @default;

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

public static string ToHex(this IEnumerable<byte> bytes) {
internal static string ToHex(this IEnumerable<byte> bytes) {
var sb = new StringBuilder();
foreach (byte b in bytes)
sb.Append(b.ToString("x2"));
return sb.ToString();
}

public static bool IsValidIdentifier(this string value) {
internal static bool IsValidIdentifier(this string value) {
if (value == null)
return false;

Expand Down