Enum.TryParse(.NET 4.0)(www.code-in.net)
submitted by
baldi(508) 1 year, 11 months ago
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.
|category: C#
|Views: 15
tags:
C# another
Everyones tags:
Your Tags: