sqids / sqids-spec

Sqids specification for encoding multiple numbers into a single ID
https://sqids.org
47 stars 3 forks source link

Update .NET code example on the site #8

Closed aradalvand closed 1 year ago

aradalvand commented 1 year ago

Not sure if this is the right place to post this but sqids-dotnet v2 has just been released which added support for all integral numeric types in .NET (e.g. int, long, etc.) — previously we only supported int. This resulted in an API breaking change where the SqidsEncoder class now requires the user to specify a type argument upon instantiation; so, all three code snippets on the website need to be updated:

-  var sqids = new SqidsEncoder(...
+  var sqids = new SqidsEncoder<int>(...
4kimov commented 1 year ago

Nice, thanks for all the work on the release + the heads up on the examples. Does it look better now?

aradalvand commented 1 year ago

Yes, perfect, thanks.