public static T Pop <T>(this ArrayBuilder <T> builder) { var e = builder.Peek(); builder.RemoveAt(builder.Count - 1); return(e); }
public void RemoveSource(string hintName) { hintName = AppendExtensionIfRequired(hintName); for (int i = 0; i < _sourcesAdded.Count; i++) { if (s_hintNameComparer.Equals(_sourcesAdded[i].HintName, hintName)) { _sourcesAdded.RemoveAt(i); return; } } }