Exemplo n.º 1
0
            public TermsRight MoveDotRight()
            {
                List<string> list = new List<string>();
                list.AddRange(termsRight);
                int dotIndex = list.FindIndex(x => x.Equals(DOT));
                string bufor = list[dotIndex + 1];
                list[dotIndex + 1] = DOT;
                list[dotIndex] = bufor;

                var newKey = new TermsRight(list);

                return newKey;
            }
Exemplo n.º 2
0
            public TermsRight AddDotToTheEnd()
            {
                List<string> list = new List<string>();
                list.AddRange(termsRight);
                list.Add(DOT);
                var newKey = new TermsRight(list);

                return newKey;
            }
Exemplo n.º 3
0
            public TermsRight AddDotToTheBeginning()
            {
                List<string> list = new List<string>();
                list.AddRange(termsRight);
                list.Insert(0, DOT);
                var newKey = new TermsRight(list);

                return newKey;
            }
Exemplo n.º 4
0
 public static TermsRight ListBuilder(params string[] parameter)
 {
     TermsRight list = new TermsRight(parameter.ToList());
     return list;
 }