CSharpFeeds - All your C# feeds in one place.

Thursday, August 27, 2009

Iterators, Expressions, and LINQ for Euler

by ssmith via Blog on 8/27/2009 6:19:00 PM

Recently I’ve been doing some Project Euler problems as exercises to help improve my coding skills.  We do this internally at NimblePros periodically and also at last weeks Hudson Software Craftsmanship meeting, which I co-run.  In doing these problems, I’ve been trying to approach them both from a traditional C# 1.0 standpoint as well as using newer constructs such as lambda expressions, LINQ, and iterators.  It’s amazing how much more flexible a design can be through the use of ...

[ read more ]

What's the Difference? Part Three: fixed vs. fixed

by Eric Lippert via Fabulous Adventures In Coding on 8/27/2009 4:43:00 PM

I got an email the other day that began: I have a question about fixed sized buffers in C#:  unsafe struct FixedBuffer { public fixed int buffer[100]; } Now by declaring buffer as fixed it is not movable... And my heart sank. This is one of those deeply unfortunate times when subtle choices made in the details of language design encourage misunderstandings. When doing pointer arithmetic in unsafe code on a managed object, you need to make sure that the garbage collector does not move ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us