Pitfalls of (Mis)Using C# Iterators to Implement Coroutines

前端 未结 4 626
刺人心
刺人心 2021-01-31 20:32

I am writing refactoring a Silverlight program to consumes a portion of its existing business logic from a WCF service. In doing so, I\'ve run into the restriction in Silverligh

4条回答
  •  面向向阳花
    2021-01-31 21:20

    The Reactive Extensions for .NET provide a much cleaner model for handling this.

    They provide extensions which let you write simple delegates against asynchronous events in a much, much cleaner manner. I recommend looking into them, and adapting them to this situation.

提交回复
热议问题