internal void Foreach(Action <PlaceHandle> action) { PlaceCallback callback = (index, handle, userData) => { action(PlaceHandle.CloneFrom(handle)); return(true); }; Foreach(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get place list from native handle"); }
internal static extern ErrorCode Foreach(IntPtr /* maps_place_list_h */ placeList, PlaceCallback callback, IntPtr /* void */ userData);