c# Is this a valid conditional Statement?

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-05-12T11:07:48Z Indexed on 2010/05/12 12:04 UTC
Read the original article Hit count: 299

Filed under:
|
|
|

I have two methods A and B only after the success of two methods i have to insert into database... So is this a valid conditional Statement in c#?

if(A() && B())
{
    //insert into db
}

After the execution of method A i have to execute B If both are successful i have to insert...

© Stack Overflow or respective owner

Related posts about c#

Related posts about conditional