Published On Nov 24, 2023
Getting bored of having to write code in triplicate just to initialize a field? Try primary constructors.
Source code available at:
https://github.com/JasperKent/Primary...
Related videos:
- C#9 Records • C# 9 Records
Topics include:
- TypeScript parameter properties
- Primary constructors in records
- Calling primary constructors
- Primary constructors in classes and structs
- Using Primary constructor fields in classes
- When not to use primary constructors
- Primary constructors and dependency injection
- Primary constructors and readonly fields
- Overloading primary constructors
show more