Can an anonymous method in C# call itself?

前端 未结 6 1886
-上瘾入骨i
-上瘾入骨i 2020-12-08 02:03

I have the following code:

class myClass
{
private delegate string myDelegate(Object bj);

protected void method()
   {
   myDelegate build = delegate(Object         


        
6条回答
  •  情深已故
    2020-12-08 02:42

    If you're getting to the point of recursive anonymous methods, you may want to promote it to be a normal, private method in your class.

提交回复
热议问题