public static IEnumerable <LetterRangeUser <TLetter> > Enumerate(LetterRangeUser <TLetter> letterRangeUser)
        {
            while (letterRangeUser != null)
            {
                yield return(letterRangeUser);

                letterRangeUser = letterRangeUser.Next;
            }
        }
 public LetterRangeUser(Id <RxMatch <TLetter> > user, LetterRangeUser <TLetter> next)
 {
     this.Next = next;
     this.User = user;
 }
Пример #3
0
 public UsedLetterRange(Range <TLetter> range, LetterRangeUser <TLetter> users)
 {
     this.Range = range;
     this.Users = users;
 }
Пример #4
0
 public string GetUsersKey()
 {
     return('[' + string.Join("|", LetterRangeUser <TLetter> .Enumerate(this.Users).Select(r => r.User.ToInt32()).OrderBy(r => r).Select(XmlConvert.ToString)) + ']');
 }
Пример #5
0
 public UsedLetterRange(TLetter from, TLetter to, LetterRangeUser <TLetter> users) : this(Range <TLetter> .Create(from, to), users)
 {
 }