CodeQL library for C#
Search

Member predicate CollectionInitializer::getElementInitializer

Gets the ith element initializer of this collection initializer, for example the second (i = 1) element initializer is the implicit call to Add(1, "b") in

var dict = new Dictionary<int, string>{
  {0, "a"},
  {1, "b"}
};
ElementInitializer getElementInitializer(int i)