Steve Gordon

Information & Communications Technology

ASP.NET Core .NET C#.Net

Eastbourne, England, United Kingdom

Writing Code with Code: Getting Started with the Roslyn APIs

As developers, we spend ours days writing code. What if we could get the computer to write it for us? Using the .NET Roslyn APIs, we can do exactly that!

In this session Steve will share his latest work at Elastic, generating the majority of the .NET client for Elasticsearch from a simple specification. Steve will introduce and demonstrate how to get started with leveraging the Roslyn APIs. He will show you how the Elastic .NET code generator transforms a JSON spec into a C# syntax tree and outputs thousands of classes in only a few seconds.

Steve will also touch on another use of the Roslyn APIs with the C#9 feature "Source Generators". By writing and distributing source generators, we can add code at compile-time to augment codebases and avoid repetition.

You'll leave this session with an understanding of the Roslyn APIs and how you can leverage them in your work. You'll understand core concepts such as syntax trees, the SyntaxFactory and tools to help you write code with code.

Steve Gordon

Senior Engineer at Elastic, Microsoft MVP and Pluralsight author

Steve Gordon is a Pluralsight author, Microsoft MVP, senior engineer based in the UK. He works for Elastic maintaining their .NET client libraries. Steve is passionate about community and all things .NET related, having worked with ASP.NET for over 16 years. Steve enjoys sharing his knowledge through his blog, in videos and by presenting talks at user groups and conferences. Steve is excited to be a part of the .NET community and founded .NET South East, a .NET Meetup group based in Brighton. He enjoys contributing to and maintaining OSS projects. You can find Steve online at his blog and on Twitter as @stevejgordon.

Steve's full speaker profile