Skip to content

Commit

Permalink
Another change
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Nov 16, 2023
1 parent 07345b3 commit 9d841fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/ElementHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ private async Task<T> BindIsolatedHandleAsync<T>(Func<ElementHandle, Task<T>> ac
for (var i = 0; i < resultArray.Count; i++)
{
// You can use Convert.ChangeType to convert values to the desired type
output.SetValue(Convert.ChangeType(resultArray[i], elementType, CultureInfo.CurrentCulture), i);
output.SetValue(resultArray[i], i);
}

return (T)(object)output;
Expand Down

0 comments on commit 9d841fa

Please sign in to comment.