| ProductItem Property |
Get an element of the
Product at the supplied column.
Namespace:
Kaos.Combinatorics
Assembly:
KaosCombinatorics (in KaosCombinatorics.dll) Version: 5.0.0.6
Syntax public int this[
int index
] { get; }
Parameters
- index
- Type: SystemInt32
Index value.
Return Value
Type:
Int32Sequence value at
index.
Exceptions Examples using System;
using System.Linq;
using Kaos.Combinatorics;
namespace ExampleApp
{
class PtExample05
{
static void Main()
{
int[] sizes = { 2, 3, 4, 5, 6, 7 };
long rank = 925;
var pt = new Product (sizes, rank);
var text = String.Concat (pt.Select (ei => (char) ('A' + ei)));
Console.WriteLine ($"{text}\n");
for (int i = 0; i < pt.Width; ++i)
Console.WriteLine ($"Element at {i} is {pt[i]}");
}
}
}
See Also