CodeQL library for C#
codeql/csharp-all 3.1.2-dev (changelog, source)
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)