Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }