55
66namespace 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