public static Combination ( Match firstFit, Match secondFit ) : Match | ||
firstFit | Match | The first Match Type |
secondFit | Match | The Second Match Type |
return | Match |
public static Match Combination(Match firstFit, Match secondFit)
{
if ((firstFit == Match.Inverted && secondFit == Match.NonInverted) ||
(firstFit == Match.NonInverted && secondFit == Match.Inverted))
{
return Match.Inverted;
}
if ((firstFit == Match.Inverted && secondFit == Match.Inverted) ||
(firstFit == Match.NonInverted && secondFit == Match.NonInverted))
{
return Match.NonInverted;
}
return Match.Impossible;
}