DateTimeKind is an enumeration of type and can have the value Local, Unspecified, or Utc.
By default, a DateTime object’s Kind is Unspecified.
If you use DateTime.Now or DateTime.UtcNow properties, the Kind of the objects returned will be Local and Utc, respectively. This is as you’d expect, but keep in mind that a DateTime created using its constructor or converted from a String will typically be Unspecified.
Data validation is quite critical when it comes to usability and data integrity of any software or application. It helps in improving the quality of the data as well as ensuring the data consistency.
Fluent Validation is a small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules.
It splits the definition of a class over two or more source files. You can create a class definition in multiple files but it will be compiled as one class.
Most people have already heard about the new “async” and “await” functionality. This is Yet Another Introductory Post.
The “async” keyword enables the “await” keyword in that method and changes how method results are handled. That’s all the async keyword does! It does not run this method on a thread pool thread, or do any other kind of magic. The async keyword only enables the await keyword (and manages the method results).
The beginning of an async method is executed just like any other method. That is, it runs synchronously until it hits an “await” (or throws an exception).