1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 23:58:48 +00:00

🧹 Code cleanup and XMLdoc fix

This commit is contained in:
Oliver Booth 2021-01-18 15:26:14 +00:00
parent 605db2b5a8
commit 16f0a8a869

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace X10D.ListExtensions
{
/// <summary>
/// Extension methods for <see cref="IList{T}" />.
/// Extension methods for <see cref="IList{T}" /> and <see cref="IReadOnlyList{T}" />.
/// </summary>
public static class ListExtensions
{
@ -26,7 +26,7 @@ namespace X10D.ListExtensions
/// var number = list.Random();
/// </code>
/// </example>
public static T Random<T>(this IReadOnlyList<T> source, System.Random? random = null)
public static T Random<T>(this IReadOnlyList<T> source, Random? random = null)
{
if (source is null)
{
@ -43,7 +43,7 @@ namespace X10D.ListExtensions
/// <typeparam name="T">The element type.</typeparam>
/// <param name="source">The <see cref="IList{T}" /> to shuffle.</param>
/// <param name="random">Optional. The <see cref="System.Random" /> instance to use for the shuffling.</param>
public static void Shuffle<T>(this IList<T> source, System.Random? random = null)
public static void Shuffle<T>(this IList<T> source, Random? random = null)
{
if (source is null)
{