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

مشاهدة النسخة كاملة : Complex IF Statment



C# Programming
11-08-2009, 05:50 PM
Add(String GUID, String name, NetProtocol net, String ServerName, Int32 port, String UserName, String Password)

that is a method, but now i need to check all variables if are null or empty. If any one does not match, it would throw expection.
I don't like too many if statemnts, is it possible to put everything in one If line?