Saxonite 1.2.11.6
This commit is contained in:
@@ -496,6 +496,8 @@ namespace Sarand.Net.Standard.Base.Bus
|
||||
protected Params()
|
||||
{
|
||||
}
|
||||
public enum FlagState { Either = 0, True, False }
|
||||
public enum BoolState { Either = 0, True, False }
|
||||
/// <summary>Primary table alias to use if different from default.</summary>
|
||||
public String TableAlias { get; set; }
|
||||
/// <summary>Flag to indicate whether default filter ('1=1') is included if no other filter.</summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Sarand.Net.Standard.Base.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -74,6 +75,15 @@ namespace Sarand.Net.Standard.Base.Utils
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>
|
||||
/// Sort the list into random order.
|
||||
/// </summary>
|
||||
public static List<T> Randomise<T>(this List<T> values)
|
||||
{
|
||||
return values.OrderBy(_ => SacsRandomHelper.GetInt32(Int32.MaxValue)).ToList();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>
|
||||
/// Remove the specified range of items from the list to a new list.
|
||||
|
||||
Reference in New Issue
Block a user