vb.net - How can I generate all permutations / combinations of multiple arrays? -


My goal is simple, I'm trying to prepare a list of all possible combinations for a product in the database.

For example; Product Option:

  • Product Option: Color / Value: Red, Green, Blue
  • Product Option: Size / Value: Small, Made, Large, XL <
  • / Li>

    Code> Small, Red, Small, Green, Mens Small, Blue, Mens etc.

    I need to do this work if I can pass 2,3,4 or 5 arrays in it.

    I have done a lot of research and I have come in the following articles but I am unable to fulfill my goal.

    The articles I found are as follows:

Usage:

  String like slow s1 () = new string () {"small", "Made", "Big String () = "New" string () {"red", "green", "blue"} dim s3 as string () = new string () {"male", as " "Woman"} dims string () () = cartesian product (s1, s2, s3)  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -