Skip to content

Commit 0c7e3d4

Browse files
arialdomartinikurtschelfthout
authored andcommitted
Extension method needn't be public
1 parent 3b15c5f commit 0c7e3d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/CSharp.DocSnippets/Properties.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
namespace CSharp.DocSnippets
99
{
10-
public static class Extensions {
11-
public static IEnumerable<int> Insert(this IEnumerable<int> cs, int x) {
10+
static class Extensions {
11+
internal static IEnumerable<int> Insert(this IEnumerable<int> cs, int x) {
1212
var result = new List<int>(cs);
1313
foreach (var c in cs) {
1414
if (x <= c) {
@@ -20,7 +20,7 @@ public static IEnumerable<int> Insert(this IEnumerable<int> cs, int x) {
2020
return result;
2121
}
2222

23-
public static bool IsOrdered<T>(this IEnumerable<T> source) {
23+
internal static bool IsOrdered<T>(this IEnumerable<T> source) {
2424
//by Jon Skeet
2525
//I was too lazy to write it myself, and wondered whether a prettier
2626
//solution might exist in C# than the one I had in mind.

0 commit comments

Comments
 (0)