Is there any way to check for properties of a class for a particular value in c#
Posted
by Rohit
on Stack Overflow
See other posts from Stack Overflow
or by Rohit
Published on 2010-04-12T10:30:27Z
Indexed on
2010/04/12
10:33 UTC
Read the original article
Hit count: 214
c#
I have a License class.There are 50 boolean properties and some timestamp properties. I want to inform user in case all of these 50 properties are false.
One way is to use 50 if and if conditions.other way is reflection which seems overkill for this thing. Please suggest some other way. I am using .Net framework 3.5
© Stack Overflow or respective owner