|  | MulticombinationItem Property  | 
  
    Namespace: 
   Kaos.Combinatorics
    Assembly:
   KaosCombinatorics (in KaosCombinatorics.dll) Version: 5.0.0.6
 Syntax
Syntaxpublic int this[
	int index
] { get; }Parameters
- index
- Type: SystemInt32
 Zero-based index value.
Return Value
Type: 
Int32Sequence value at 
index.
 Exceptions
Exceptions Examples
Examplesusing System;
using System.Linq;
using Kaos.Combinatorics;
namespace ExampleApp
{
    class McExample05
    {
        static void Main()
        {
            
            var mc = new Multicombination (choices:9, picks:7, rank:5973);
            Console.WriteLine ($"n={mc.Choices}, k={mc.Picks}, rank={mc.Rank}:\n");
            
            var text = String.Concat (mc.Select (ei => (char) ('A' + ei)));
            Console.WriteLine ($"{text}\n");
            
            for (int i = 0; i < mc.Picks; ++i)
                Console.WriteLine ($"Element at {i} is {mc[i]}");
        }
        
    }
} See Also
See Also