mirror of https://github.com/oliverbooth/X10D
🧹 Code cleanup and XMLdoc fix
This commit is contained in:
parent
605db2b5a8
commit
16f0a8a869
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||||
namespace X10D.ListExtensions
|
namespace X10D.ListExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Extension methods for <see cref="IList{T}" />.
|
/// Extension methods for <see cref="IList{T}" /> and <see cref="IReadOnlyList{T}" />.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class ListExtensions
|
public static class ListExtensions
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ namespace X10D.ListExtensions
|
||||||
/// var number = list.Random();
|
/// var number = list.Random();
|
||||||
/// </code>
|
/// </code>
|
||||||
/// </example>
|
/// </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)
|
if (source is null)
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ namespace X10D.ListExtensions
|
||||||
/// <typeparam name="T">The element type.</typeparam>
|
/// <typeparam name="T">The element type.</typeparam>
|
||||||
/// <param name="source">The <see cref="IList{T}" /> to shuffle.</param>
|
/// <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>
|
/// <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)
|
if (source is null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue