One of the new features in C# 7 is local functions. They provide a more intuitive syntax over creating verbose System.Func delegates, as well as being more capable (they support ref and out parameters, async, generics, etc). I also read that local functions compile down to normal methods, thus reducing GC allocations when compared to System.Func.
Showing posts with label csharp. Show all posts
Showing posts with label csharp. Show all posts
31 July 2017
8 May 2017
Exploring Multiple Dispatch in C# with BenchmarkDotNet
A few years ago, Jakub Chodounský made an excellent post about Dynamic Dispatch in C#. He discussed the relations between static, dynamic, single, and multiple dispatch, and covered a few ways to get Multiple Dispatch behavior in C#:
Subscribe to:
Comments (Atom)
Popular Posts
- Increasing Code Quality with SonarQube
- Using Python 3 imaplib to connect to Gmail - Part 1: Searching and Labeling
- Using Roslyn to Automate Refactoring
- Redis on Windows fix: Redis is configured to save RDB snapshots
- Exploring Multiple Dispatch in C# with BenchmarkDotNet
- Getting started with IoT Netduino 3 ethernet a compatibility Arduino board
- IAM - Identity and Access Management
- Third Party API Fetch Strategy
- Why should we learn functional programming?
- Speeding up Python Pandas with Vectorized Operations