Session

Demystifying C#'s Interpolated string Handlers

Interpolated-String Handlers, a feature introduced in C# 10 allow us to customize the process of converting interpolated-string expressions into a properly formatted string.
While the primary purpose of this feature is to address and resolve negative impact on performance and memory footprint when using interpolated-strings in certain situations, such as logging, Interpolated-String Handlers opens the doors to some unexpected yet beneficial applications.

In this session we'll delve into the topic of Interpolated-String Handlers, discuss why they're essential, how you can implement them in your code, and how we successfully used this feature to automatically remove personally identifiable information (PII) from our logs, without changing our logging APIs or consumer code.

* Real-world example: Describing how we used Interpolated-String Handlers in Microsoft to eliminate PIIs from our logs.
* Delivered previously in two local meetups- "ALT.NET Israel" & ".NET Bond IL".
* Target audience: beginners to intermediate C#/.NET Developers.
* Preferred session duration: 30-45 minutes.

Moaid Hathot

Senior Software Engineer @ Microsoft

Acre, Israel

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top