← Back
Nick Chapsas June 2, 2025 25s

nameof in C# is FAST

Summary

The transcript discusses the .NET nameof() feature as a compile-time method for referencing names with superior performance compared to runtime reflection. By resolving references at compile time, nameof() eliminates runtime costs, prevents additional allocations, and avoids potential performance and ahead-of-time (AOT) compilation issues. The practical recommendation is to use nameof() safely as a more efficient alternative to traditional reflection APIs.

View original episode ↗