CodeQL library for C#
codeql/csharp-all 1.0.3-dev (changelog, source)
Search

Member predicate CollectionInitializer::getAnElementInitializer

Gets an element initializer of this collection initializer, for example the implicit call to Add(0, "a") on line 2 in

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