|  | Product Constructor (Int32, Int32) | 
 Initializes a new product of the supplied values with the supplied sizes of columns.
 
    Namespace: 
   Kaos.Combinatorics
    Assembly:
   KaosCombinatorics (in KaosCombinatorics.dll) Version: 6.0.0.0
 Syntax
Syntaxpublic Product(
	int[] sizes,
	int[] source
)
Parameters
- sizes
- Type: SystemInt32
 Size of each column.
- source
- Type: SystemInt32
 Integer values for the columns.
 Exceptions
Exceptions Examples
Examplesusing System;
using Kaos.Combinatorics;
namespace ExampleApp
{
    class PtExample04
    {
        static void Main()
        {
            
            var pt = new Product (new int[] { 7, 6, 5 }, 43);
            Console.WriteLine ($"{pt}  width={pt.Width}, rank={pt.Rank}\n");
            
            pt.Rank = -1;
            Console.WriteLine ($"{pt}  width={pt.Width}, last={pt.Rank}\n");
            
            pt.Rank = pt.Rank + 1;
            Console.WriteLine ($"{pt}  width={pt.Width}, rank={pt.Rank}\n");
            
            pt = new Product (new int[] { 7, 6, 5 }, new int[] { 5, 4, 3 });
            Console.WriteLine ($"{pt}  width={pt.Width}, rank={pt.Rank}");
        }
        
    }
} See Also
See Also