title: Error while using delegate: Invalid token 'void' in class, struct, or interface member declaration
body: <p>I am getting this error while declaring a delegate:
  "Invalid token 'void' in class, struct, or interface member declaration"</p>
  
  <p><img src="https://i.stack.imgur.com/Zepaw.png" alt="enter image description here"></p>
  
  <p>Can someone suggest a reason for this error?</p>