Skip to content

gabriele-tomassetti/getting-started-roslyn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started with Roslyn

This is an example on how to use Roslyn. It's fairly easy example, but it touches the three parts of using the .NET Compiler Platform:

  • syntax analysis
  • semantic analysis
  • syntax rewriting

What we do is to check that every int variable is initialized, including the one declared like var by looking at the symbol of every variable. If it is not initialized, we initialized it to 42. If it's already initialized, but it's initialization value it's not 42, we change it to 42.

You can read an article on the example on Getting started Roslyn

This code is licensed under the MIT License. Thanks to Nik Sultana for having pointed out the lack of a license.

There is also a Getting Started Rosylin version ported to F# by Nik Sultana

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages