Objective-C到C#的yield关键字是否有任何并行 [英] Is there any parallel in Objective-C to C#'s yield keyword

查看:166
本文介绍了Objective-C到C#的yield关键字是否有任何并行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次在C#中看到 yield 关键字时,我觉得对于破坏语言有什么办法。从那时起成长并实际使用该语言我发现表达状态逻辑非常简单,我想在其他开发平台中使用类似的方法。

The first time I saw the yield keyword in C# I thought "yuck what a way to junk up the language". Having grown since then and actually used the language I find it so pleasantly simple to express state logic that I'd like to use a similar approach in other development platforms.

我正在探索一些支持实用程序的Objective-C。是否有类似Objective-C的C#yield关键字?

I'm exploring Objective-C for some support utilities. Is there anything like the C# yield keyword for Objective-C?

推荐答案

据我所知,在语言中没有真正的支持,但是这里的有人花时间构建的实现,可能是很有帮助。

There's no real support for it in the language as far as I know, but here's an implementation someone took the time to build, might be helpful.

这篇关于Objective-C到C#的yield关键字是否有任何并行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆