andrewlock / StronglyTypedId

A Rosyln-powered generator for strongly-typed IDs
MIT License
1.52k stars 80 forks source link

[Proposal] Explicit cast #80

Closed nils-a closed 2 years ago

nils-a commented 2 years ago

In one of my projects, I am using something similar to StronglyTypedId (i.e. all hand-written structs 😁 ) and I stumbled on this this library. It seems like there is 99% of the work that I manually typed all here. Great project 🎉

The feature that I am missing at a first glance is the generation of explicit cast operators. Would you consider adding explicit casts (as an opt-in) feature to the generation?

NxSoftware commented 2 years ago

+1

68 already exists for implicit and explicit cast operators

nils-a commented 2 years ago

Perfect, haven't seen that. Closing this one, in favor of #68.