Custom Date(Time) class..?
-
Has anybody seen a full implementation for a date(time) class/struct in C#? I don't need this for a project or anything (the built in one seems adequate for dealing with date and time constructs for business apps). However, I have a friend who is trying to pick up some of the more arcane OO concepts in C# and I thought such an example might give good coverage of operator overloading, serialization, etc. I had to do one way back in the day with C++, so I thought something similar might be a handy way of explaining the same concepts to him.
-
Has anybody seen a full implementation for a date(time) class/struct in C#? I don't need this for a project or anything (the built in one seems adequate for dealing with date and time constructs for business apps). However, I have a friend who is trying to pick up some of the more arcane OO concepts in C# and I thought such an example might give good coverage of operator overloading, serialization, etc. I had to do one way back in the day with C++, so I thought something similar might be a handy way of explaining the same concepts to him.
-
Has anybody seen a full implementation for a date(time) class/struct in C#? I don't need this for a project or anything (the built in one seems adequate for dealing with date and time constructs for business apps). However, I have a friend who is trying to pick up some of the more arcane OO concepts in C# and I thought such an example might give good coverage of operator overloading, serialization, etc. I had to do one way back in the day with C++, so I thought something similar might be a handy way of explaining the same concepts to him.
I used reflector to browse through the DateTime code a while back. You could always use that.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.