I just started c#. But can not figure out DateTime
. I know it is a struct but why do I see different ways of initialize it like class sometime.
How is this if it is a struct?
DateTime myValue = DateTime.Now; // This is struct
DateTime myValue2 = new DateTime(); // This is class with +11 overloads.
So is there two versions of datetime in c# one is struct and other is class?