Matt Warren 11/8/2017

A DoS Attack against the C# Compiler

Read Original

This technical article analyzes a specific C# code snippet involving deeply nested generic types that causes the C# compiler's output and compilation time to grow exponentially. It explains the underlying mechanics of generics and type resolution that lead to this behavior, referencing insights from experts and a StackOverflow discussion. The piece serves as a deep dive into a compiler edge case and a warning against such patterns.

A DoS Attack against the C# Compiler

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week