title: Delegate as parameter in C# class constructor
body: <p>Hi i have a class with a delegate as a parameter as shown in the code, but i get the errors
  <code>Error  1   Type expected   ...\Classes\Class1.cs   218 33  Classes</code> and
  <code>Error  2   ; expected  ...\Classes\Class1.cs   218 96  Classes</code>. How do i fix the issue? Thanks in advance! I'm trying to pass it byref so when a class initializes, some method of it is attached to the delegate. </p>
  
  <pre><code>public constructor(ref delegate bool delegatename(someparameters))
  {
      some code
  }
  </code></pre>