From 16f0a8a8693fc307328ad5ae9f045bfc9b0ab182 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Mon, 18 Jan 2021 15:26:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Code=20cleanup=20and=20XMLdoc=20?= =?UTF-8?q?fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- X10D/src/ListExtensions/ListExtensions.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/X10D/src/ListExtensions/ListExtensions.cs b/X10D/src/ListExtensions/ListExtensions.cs index 4d58ac5..926cd08 100644 --- a/X10D/src/ListExtensions/ListExtensions.cs +++ b/X10D/src/ListExtensions/ListExtensions.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace X10D.ListExtensions { /// - /// Extension methods for . + /// Extension methods for and . /// public static class ListExtensions { @@ -21,12 +21,12 @@ namespace X10D.ListExtensions /// is . /// /// - /// + /// /// var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; /// var number = list.Random(); /// /// - public static T Random(this IReadOnlyList source, System.Random? random = null) + public static T Random(this IReadOnlyList source, Random? random = null) { if (source is null) { @@ -35,15 +35,15 @@ namespace X10D.ListExtensions random ??= RandomExtensions.Random; return random.NextFrom(source); - } - + } + /// /// Reorganizes the elements in a list by implementing a Fisher-Yates shuffle. /// /// The element type. /// The to shuffle. /// Optional. The instance to use for the shuffling. - public static void Shuffle(this IList source, System.Random? random = null) + public static void Shuffle(this IList source, Random? random = null) { if (source is null) {