mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Create 5.0-to-5.1.md
This commit is contained in:
parent
65dc5def01
commit
93c38ff4d4
1 changed files with 17 additions and 0 deletions
17
.github/migrations/5.0-to-5.1.md
vendored
Normal file
17
.github/migrations/5.0-to-5.1.md
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
# ASF V5.0 -> V5.1
|
||||
|
||||
## Plugins
|
||||
|
||||
### `SelectElementNodes(...)`, `SelectNodes(...)`
|
||||
|
||||
Previously returned `List<IElement>`, now returns `IEnumerable<IElement>`
|
||||
|
||||
https://github.com/JustArchiNET/ArchiSteamFarm/commit/65dc5def01b4208dd019685c8724d88f82d2902f
|
||||
|
||||
#### Proper solution
|
||||
|
||||
Use `IEnumerable<IElement>` where you've previously used `List<IElement>`. If you're just enumerating over results, you don't need a full collection, we didn't need it anywhere in ASF code when doing this change.
|
||||
|
||||
#### Alternative solution
|
||||
|
||||
Just call `.ToList()` on the result yourself.
|
Loading…
Reference in a new issue