← Back
Nick Chapsas July 1, 2025 23s

Static abstract on interfaces?!

Summary

In C# 11, interfaces have evolved beyond instance members to support static abstract methods, enabling more flexible generic programming techniques. This enhancement allows generic code to call static methods on type parameters, unlocking new patterns like generic math and factory methods. The update also introduces static virtual members with default implementations, expanding the capabilities of interfaces in .NET development. These changes provide developers with more powerful tools for writing generic, reusable code.

View original episode ↗