Showcase generic templates applying to all struct ids#22
Conversation
49276fd to
052790a
Compare
A generic template can be applied to all struct-based ids by providing a ValueType primary constructor. To make it apply to both structs and string-based ids, use `object` as the primary constructor value.
052790a to
ed69102
Compare
🧪 Details on macOS Unix 14.7.1✅ StructId.ComparableGeneratorTests.GenerateComparable 🧪 Details on Ubuntu 22.04.5 LTS✅ StructId.ComparableGeneratorTests.GenerateComparable 🧪 Details on Microsoft Windows 10.0.20348✅ StructId.ComparableGeneratorTests.GenerateComparable from dotnet-retest v0.6.3 on .NET 8.0.11 with 💜 |
A generic template can be applied to all struct-based ids by providing a ValueType primary constructor. To make it apply to both structs and string-based ids, use
objectas the primary constructor value.