public void Replace(Random Random, Generated <T> ReplaceIn, int Index) { if (_Match.Match(ReplaceIn, Index)) { ReplaceIn.Remove(Index, _Match.Length); List <T> New = new List <T>(); Generated <T> R = _Replacement.Generate(Random); foreach (T S in R) { New.Add(S); } ReplaceIn.Insert(Index, New); } }
public bool Match(Generated <T> MatchIn, int Index) { return(_Match.Match(MatchIn, Index)); }