Repository navigation
NuGet: https://www.nuget.org/packages/TcgDex.CSharpSdk/0.9.1
dotnet add package TcgDex.CSharpSdk --version 0.9.1
Changed
- net10.0:
Microsoft.Extensions.Http,Microsoft.Extensions.Logging.Abstractionsand
Microsoft.Extensions.Optionsnow require 10.0.14, up from 10.0.13. Each target tracks the
latest patch of its own line, for the security, bug and performance fixes. The net8.0 and
netstandard2.0 builds are unchanged and still depend on the 8.0.x line, which is at its newest patch.
Fixed
- Models now compare by value, collections included. Two
Cards deserialized from the same JSON were never equal
(==,EqualsandGetHashCodedisagreed), because the collections they hold were compared by reference.
This coversCard,Attack,DetailedVariant,Series,CardSetandTcgPlayerPricing. Order matters for
a list and not for the printings of a price, whose keys compare ordinally whatever comparer your dictionary used.
A model's text (ToString) now shows a collection's items instead of its type name. No signature changes.
Three things you can now observe:- A model still does not copy a list you give it, so editing that list afterwards changes the model, and now its
equality and hash as well. Treat a list as given away. (A price's printings are copied.) Equals,GetHashCodeandToStringcost time proportional to the card's contents, so key a cache on
Card.Idrather than on the whole card.ToStringon a set of 300 cards prints all 300.
- A model still does not copy a list you give it, so editing that list afterwards changes the model, and now its