Lines Matching refs:current
211 /// both the <paramref name="current"/> and <paramref name="extras"/> lists.
212 /// If <paramref name="current" /> is null and <paramref name="extras"/> is empty,
213 /// null is returned. Otherwise, either a new list is created (if <paramref name="current" />
214 /// is null) or the elements of <paramref name="extras"/> are added to <paramref name="current" />.
216 private static List<T> AddAll<T>(List<T> current, IList<T> extras)
220 return current;
222 if (current == null)
224 current = new List<T>(extras);
228 current.AddRange(extras);
230 return current;