开发者

Looking for C# generics/delegate katas [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Any recommendations for katas covering generics and delegates in C#?

Most of the member on my team can 开发者_运维知识库code generics and delegates, but always require a quick look at the documentation or an example to jump start our brains on them. So I thought that for our daily kata we would cover these aspects for a couple of weeks until we can read and write them by instinct.

This would make it easier for us to use these tools in our coding retreats for design patterns.

Thanks in advance for any recommendations...


You may think this terribly vain of me to suggest, but how about doing the same sort of exercise as I've been engaging in for the last month or so? Namely reimplementing LINQ to Objects. My posts aren't in kata form, but you might find them useful to suggest an ordering, and they could give you hints if you get stuck.

LINQ to Objects is all about delegates and is based on generic sequences (with plenty of generic methods involved) so between the tests and the implementation you'll get a lot of practice in - and get to know LINQ better at the same time!

If you're only doing it for a specific exercise you could always ignore some of the trickier operators (like OrderBy etc).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜