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; }
public UsedLetterRange(Range <TLetter> range, LetterRangeUser <TLetter> users) { this.Range = range; this.Users = users; }
public string GetUsersKey() { return('[' + string.Join("|", LetterRangeUser <TLetter> .Enumerate(this.Users).Select(r => r.User.ToInt32()).OrderBy(r => r).Select(XmlConvert.ToString)) + ']'); }
public UsedLetterRange(TLetter from, TLetter to, LetterRangeUser <TLetter> users) : this(Range <TLetter> .Create(from, to), users) { }