simplified if statement csharp

Code Example - simplified if statement csharp

                
                        bool c1=true, c2=true;
if(!(!c1 || c2)){
}
                    
                
 

csharp inline if

                        
                                (condition ? [true value] : [false value])

int x = a ? b : c;
                            
                        
 

Related code examples