C# provides managed exception handling.This means that we don’t have to manually check the code for exceptions.Instead execution is automatically transfered to the appropriate part. An Exception is an error which happens during program execution or runtime.Exception handling allows us to efficiently manage the unexpected behaviors during program execution.For example if we try to assign […]
Archives for June 2016
Min and Max DateTime values in C#
Any variable of type DateTime can be assigned appropriate values for handling date and time data.Any value which lies between the DateTime.MaxValue and DateTime.MinValue can be assigned to a DateTime variable. Following example demonstrates this. Ticks is a property of DateTime variable which represents the variable as an integer.In the following example we are validating […]