File: Program.cs
Problem:
-
All properties of the Something class are public, which allows you to change them directly.
-
Guid.NewGuid().ToString("N") is generated in the constructor, but there is no guarantee that the Id will not change after initialization.
-
DateTime.Now in Date creates a variable that changes on each new instance, which can be undesirable behavior.
File: Program.cs
Problem:
All properties of the Something class are public, which allows you to change them directly.
Guid.NewGuid().ToString("N") is generated in the constructor, but there is no guarantee that the Id will not change after initialization.
DateTime.Now in Date creates a variable that changes on each new instance, which can be undesirable behavior.