ListExtrasGetAllCombinationsT Method |
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static List<List<T>> GetAllCombinations<T>(
this List<T> inlist,
int minlength = 1,
int maxlength = -1
)
<ExtensionAttribute>
Public Shared Function GetAllCombinations(Of T) (
inlist As List(Of T),
Optional minlength As Integer = 1,
Optional maxlength As Integer = -1
) As List(Of List(Of T))
public:
[ExtensionAttribute]
generic<typename T>
static List<List<T>^>^ GetAllCombinations(
List<T>^ inlist,
int minlength = 1,
int maxlength = -1
)
[<ExtensionAttribute>]
static member GetAllCombinations :
inlist : List<'T> *
?minlength : int *
?maxlength : int
(* Defaults:
let _minlength = defaultArg minlength 1
let _maxlength = defaultArg maxlength -1
*)
-> List<List<'T>>
Parameters
- inlist
- Type: System.Collections.GenericListT
- minlength (Optional)
- Type: SystemInt32
- maxlength (Optional)
- Type: SystemInt32
Type Parameters
- T
Return Value
Type:
ListListTUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also