75 Views
Since .NET 4.0 the Enum class contains also a TryParse method. The method, which is supported in other basic data types already since version 2.0, allows to pass in a value which will be checked if it can be converted into the defined type. The TryParse method allows you to procude better readable and shorter code.
0 comments