How to generate various combinations of opposite values using LinQ/C#
I have a list of operators in an array like "> < = + ="
i also have a function which can return me the opposite value of each item in an array.Opposite value of ">"
is "<"
and so on.So considering the reverse operators for each and every value how to generate various possible combinations
Sample: Problem Statement :
`string[] arrSample = new string[]{"!=","="};` //arrSample can be any object array with property values.The property can accept operator values like
!=,=,>,< etc..
Expected Output: The various combinations considering the reverse operator would be
Output Sequence1: =,!=
Output Sequence2: !=,=
Output Sequence3: = , =
Output Sequence4: !=,!=