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

Member predicate AnonymousObjectCreation::getInitializer

Gets the object initializer or collection initializer of this constructor call, if any. For example { {0, "a"}, {1, "b"} } in

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