CodeQL library for C#
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()