المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Conditional ?:



C# Programming
05-07-2009, 12:33 AM
Hi,

Is there any way to get the following to work?

bool s = _myProperty == true ? Method1() : Method2();

Or is this just silly talk? http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif

Jammer
My Blog (http://jammer.biz/blog2/) | Article(s) (http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4664921)