? operator error in sintax, error in the else : good morning guys.


I have this in class:

    public delegate void OnTrue(String TestPassed);
    public event OnTrue OnTrueEvent;
        
    public delegate void OnFalse(String TestPassed);
    public event OnFalse OnFalseEvent;


this is my do method:

    public void Do(){
       bool found=false;
       string p ="";

       // some actions
    
       found ? (OnTrueEvent != null ? OnTrueEvent(p): ;) :(OnFalseEvent != null ? OnFalseEvent(p): ;);
    }


my problem that if in line does not work. 


exploded it should be this:


    if (found)
       if (OnFalseEvent != null)
          OnFalseEvent(p);
    else
       if (OnTrueEvent != null)
          OnTrueEvent(p);



I would like to know where you are wrong and how correct it should be.


Thanks in advance.
