¡@

Home 

c# Programming Glossary: somedelegate

Cast delegate to Func in C#

http://stackoverflow.com/questions/1906787/cast-delegate-to-func-in-c-sharp

delegate to Func in C# I have code public delegate int SomeDelegate int p public static int Inc int p return p 1 I can cast Inc.. p public static int Inc int p return p 1 I can cast Inc to SomeDelegate or Func int int SomeDelegate a Inc Func int int b Inc but I.. return p 1 I can cast Inc to SomeDelegate or Func int int SomeDelegate a Inc Func int int b Inc but I can't cast Inc to SomeDelegate..