CodeQL library for C#
codeql/csharp-all 0.9.0 (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()