Passing a callback function to another class

前端 未结 7 1381
小鲜肉
小鲜肉 2021-01-30 00:39

I\'m basically trying to pass a method to another class to be called later, but can\'t quite figure this out in C# (I\'m still too used to Objective-C).

public c         


        
7条回答
  •  日久生厌
    2021-01-30 01:16

    What you need is a delegate and a callback. Here is a nice MSDN article that will show you how to use this technique in C#.

提交回复
热议问题