I have figured out how to do a CodeConditionStatement (if) in CodeDOM, but I
am having trouble figuring out how to make it generate something like this...

if ((a == b) && (c == d))
{
//stuff
}

Any suggestions?

Re: Doing "&&" in codeDOM by Lionel

Lionel
Fri Mar 25 00:57:34 CST 2005


Use CodeBinaryOperatorExpression with BooleanAnd as enum value
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcodedomcodebinaryoperatortypeclasstopic.asp)

Lionel.

"Paul" <Paul@discussions.microsoft.com> a écrit dans le message de news:
4556C126-8AF2-400B-8FE6-025F5802C73B@microsoft.com...
>I have figured out how to do a CodeConditionStatement (if) in CodeDOM, but
>I
> am having trouble figuring out how to make it generate something like
> this...
>
> if ((a == b) && (c == d))
> {
> //stuff
> }
>
> Any suggestions?



Re: Doing "&&" in codeDOM by Paul

Paul
Fri Mar 25 12:29:02 CST 2005

Thanks Lionel. I'm not sure how I missed that...

"Lionel LASKE" wrote:

>
> Use CodeBinaryOperatorExpression with BooleanAnd as enum value
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcodedomcodebinaryoperatortypeclasstopic.asp)
>
> Lionel.
>
> "Paul" <Paul@discussions.microsoft.com> a écrit dans le message de news:
> 4556C126-8AF2-400B-8FE6-025F5802C73B@microsoft.com...
> >I have figured out how to do a CodeConditionStatement (if) in CodeDOM, but
> >I
> > am having trouble figuring out how to make it generate something like
> > this...
> >
> > if ((a == b) && (c == d))
> > {
> > //stuff
> > }
> >
> > Any suggestions?
>
>
>