Blog Logo
TAGS

Using default interface methods for performance gains in IHeaderDictionary

In this post, Andrew Lock discusses how default interface methods in C# 8 can be used to improve performance. He shows a pull request to ASP.NET Core that optimizes specific usages of the interface. Default interface methods allow you to evolve an interface without breaking consumers, and you can provide a default implementation that implementers can override. Lock also explains how default interface methods can be used to improve performance in ASP.NET Core.