Skip to content

Commit

Permalink
Internalize more client extension methods (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski authored Dec 30, 2021
1 parent 46e8977 commit 6bbe515
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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 {
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

0 comments on commit 6bbe515

Please sign in to comment.