Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueOf vs Records #18

Open
respel opened this issue May 23, 2021 · 4 comments
Open

ValueOf vs Records #18

respel opened this issue May 23, 2021 · 4 comments

Comments

@respel
Copy link

respel commented May 23, 2021

Now that we have records in C#, what's the benefit of using this library over them? Have you considered deprecating this and redirecting potential users to use records?

@Paul-Williams
Copy link
Contributor

Records are only 'officially' available in .NET 5 and higher, not from .NET Framework or Core.
See: https://tooslowexception.com/6-less-popular-facts-about-c-9-records/

@silver-dragon
Copy link

Records don't work in VB.NET whereas this package works great.

@AraHaan
Copy link

AraHaan commented Jun 24, 2022

VB.NET is dead where as C# is not dead.

@SteveDunn
Copy link

Records on their own are not a complete answer to Value Objects. Take a look at Vogen to see if it fits your needs. It has additional constraints on the usage and creation of value objects - in the form of compilation errors and runtime checks.

https://github.com/SteveDunn/Vogen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants