Enum.HasFlag method in C# 4.0(jalpesh.blogspot.com)
submitted by
jalpesh(1347) 1 year, 4 months ago
Enums in dot net programming is a great facility and we all used it to increase code readability. In earlier version of .NET framework we don’t have any method anything that will check whether a value is assigned to it or not. In C# 4.0 we have new static method called HasFlag which will check that particular value is assigned or not. Let’s take an example for that. First I have created a enum called PaymentType which could have two values Credit Card or Debit Card. Just like following.public enum Paymen...
|category: ASP.NET
|Views: 11
tags:
ASP.NET another
Everyones tags:
Your Tags: