I wish I could convert a constructor to a delegate


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. class Foo {
  2. public Foo(int bar) { }
  3. }
  4.  
  5. Func<int, Foo> foo = Foo;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.