private bool IsNotNullEmptyEqWith(SplitStrTuple trg, SplitStrTuple refn = null) { bool retVal = trg != null; retVal = retVal && string.IsNullOrEmpty(trg.Str); if (refn != null) { retVal = retVal && trg.Chr == refn.Chr; } return(retVal); }
private Tuple <SplitStrTuple, SplitStrTuple, SplitStrTuple> GetFirstThreeParts( List <SplitStrTuple> partsList, int partsListCount) { SplitStrTuple first = null, second = null, third = null; if (partsListCount > 0) { first = partsList[0]; } if (partsListCount > 1) { second = partsList[1]; } if (partsListCount > 2) { third = partsList[2]; } return(new Tuple <SplitStrTuple, SplitStrTuple, SplitStrTuple>( first, second, third)); }