in

B# .NET Technical Community Homepage

Bart De Smet's online technical community
All Tags » C# 3.0 (RSS)

Browse by Tags

  • Pattern Matching in C# - Part 6

    Monday morning: The Return of The Pattern Matcher. After an awesome weekend (well, a Saturday at least) plenty of sun here in Seattle, we'll dive into even more pattern matching fun. This time around we'll investigate ways to match collections. Last time we wrapped our heads around ways to match...
    Posted to B# .NET Blog (Weblog) by bart on 04-14-2008
  • Pattern Matching in C# - Part 5

    Remark: Some readers have asked me for the sources of all this magic. Since this series is based on an extraction from a bigger project and I'm composing the decoupled (and slightly simplified) pattern matcher as I'm writing these blog posts, the source isn't in a publishable condition yet...
    Posted to B# .NET Blog (Weblog) by bart on 04-11-2008
  • Pattern Matching in C# - Part 4

    Last time around in this series we won the battle of performance, going all the way from an interpreter-driven pattern matcher to a fully on-the-fly compiled one, with great results almost reaching the performance of a manual implementation. However, functionality-wise our pattern matcher is rather restricted...
    Posted to B# .NET Blog (Weblog) by bart on 04-10-2008
  • Pattern Matching in C# - Part 3

    Welcome back beloved pattern matchers! In our last encounter we moved from closed to open pattern match objects in order to allow for reuse, improving the performance of our pattern matcher quite a bit. But we're not done yet: today we'll build upon our open pattern match and provide a way to...
    Posted to B# .NET Blog (Weblog) by bart on 04-09-2008
  • Pattern Matching in C# - Part 2

    In our journey to find the perfect match, we've arrived at an interpreter-based pattern matcher in the previous post . Although there are quite some limitations and the syntax isn't as sweet as we'd like it to be, it's fully functional . However, what about the performance of our pattern...
    Posted to B# .NET Blog (Weblog) by bart on 04-08-2008
  • Pattern Matching in C# - Part 1

    In the previous episode of this series we took a look at the concept of pattern matching as it exists in a couple of functional languages out there as well as how we're going to map it to C# 3.0 syntax. We left off with the exercise of guesstimating the public contract of our Pattern`1 class based...
    Posted to B# .NET Blog (Weblog) by bart on 04-07-2008
  • Pattern Matching in C# - Part 0

    Last week I blogged about a functional-inspired (type)switch expression in C# and in a reaction on some comments I mentioned I'm playing around with something bigger. Let me set the record straight, this post isn't that bigger thing, it's just a related piece of the puzzle. But what's...
    Posted to B# .NET Blog (Weblog) by bart on 04-06-2008
  • A functional C# (type)switch

    A while ago I posted a functional way of exception handling , introducing similar functionality as exception filters (VB's When keyword). I admitted it was a crazy Sunday afternoon idea, maybe I should create a category entitled "Crazy Sundays" since this post very much belongs to that...
    Posted to B# .NET Blog (Weblog) by bart on 03-30-2008
  • Exception Handling in functional style

    What a joke you must think when reading this post's title. Isn't the functional paradigm all about side-effect free programming and the such? Well, it turns out you're absolutely right. So, why this post? I have to admit I had yet another crazy Sunday afternoon idea that I found worthwhile...
    Posted to B# .NET Blog (Weblog) by bart on 01-06-2008
  • C# 3.0 Object Initializers Revisited

    A while ago I posted about this new C# 3.0 feature . Although the IL code (aargh, yet another of these posts :-)) in that post reveals how object initializers are implemented internally, I wanted to make it slightly more explicit over here to avoid confusion. Consider the following C# 3.0 fragment: using...
    Posted to B# .NET Blog (Weblog) by bart on 11-22-2007
Page 4 of 9 (82 items) « First ... < Previous 2 3 4 5 6 Next > ... Last »
Powered by Community Server (Non-Commercial Edition), by Telligent Systems