How to check two methods are true

Posted by Madhuri123 under ASP.NET on 5/5/2011 | Points: 10 | Views : 1020 | Status : [Member] | Replies : 3
Hi,
I have two methods in my project.for example method1() and method2().So,these two methods must be true after that only remaining part must be executed.
What is code for this.can u plz help me




Responses

Posted by: Prabhakar on: 5/5/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Madhuri123

Show ur Code . . So i Try it . .

Best Regard's
Prabhakar

Madhuri123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 5/5/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
You can write something like (with an approximation that return type of both Method1 and Method2 is boolean)

if(! (Method1() && Method2()))

retrun;

Thanks,
Debata

Madhuri123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhuri123 on: 5/5/2011 [Member] Starter | Points: 25

Up
0
Down

Thank u so much,

Its Working


Best Regards,
T.Madhuri


Madhuri123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response