Skip to content

Commit 1713f50

Browse files
Merge pull request #1202 from ArminShoeibi/feat/file-scoped-namespaces
Use file-scoped namesapces in RabbitMQ.Client project
2 parents f8c7b9d + 5388cdd commit 1713f50

File tree

198 files changed

+11511
-11711
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+11511
-11711
lines changed
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
using System.Collections.Generic;
22

3-
namespace RabbitMQ
4-
{
3+
namespace RabbitMQ;
54
#nullable enable
65
#if NETSTANDARD
7-
internal static class DictionaryExtension
6+
internal static class DictionaryExtension
7+
{
8+
public static bool Remove<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, out TValue value)
89
{
9-
public static bool Remove<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, out TValue value)
10-
{
11-
return dictionary.TryGetValue(key, out value) && dictionary.Remove(key);
12-
}
10+
return dictionary.TryGetValue(key, out value) && dictionary.Remove(key);
1311
}
14-
#endif
1512
}
13+
#endif
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
using System;
22

3-
namespace RabbitMQ
4-
{
3+
namespace RabbitMQ;
54
#nullable enable
65
#if NETSTANDARD
7-
internal static class StringExtension
6+
internal static class StringExtension
7+
{
8+
public static bool Contains(this string toSearch, string value, StringComparison comparisonType)
89
{
9-
public static bool Contains(this string toSearch, string value, StringComparison comparisonType)
10-
{
11-
return toSearch.IndexOf(value, comparisonType) > 0;
12-
}
10+
return toSearch.IndexOf(value, comparisonType) > 0;
1311
}
14-
#endif
1512
}
13+
#endif

0 commit comments

Comments
 (0)