In this video, I show via an example how to use Roslyn from inside a Visual Studio extension. More specifically, how to use Roslyn from inside a QuickInfo source. QuickInfo is part of IntelliSense that basically shows useful information about source code inside a tooltip. Here is the link to the video: https://www.youtube.com/watch?v=s0OrtzpNjtc
F# Language Features – Part 2 (Tic Tac Toe Example)
F# is a.NET based functional-first programming language. In the second part of the tutorial series, I will continue exploring the F# language, by using an example of the Tic Tac Toe game.
This article is published at the .NET Curry magazine, click here to read the article.
How to create a Roslyn Code Refactoring – Part 3 (Video)
In this video, I continue working on the code refactoring I created in the last two videos. In this part, I work on named arguments. Here is the link to the video: https://www.youtube.com/watch?v=wjwa0HPd2nk
How to create a Roslyn Code Refactoring – Part 2 (Video)
In this video, I continue working on the Roslyn code refactoring I created in the previous video. Here is the link to the video: https://www.youtube.com/watch?v=JO8VqOHYYqo
F# Language Features – Part 1 (Tic Tac Toe Example)
F# is a .NET based functional-first programming language. In this article series, we will explore the F# language by using the example of the Tic Tac Toe game.
This article is published at the .NET Curry magazine, click here to read the article.
How to create a Roslyn Code Refactoring (Video)
In this video, I will show you how to build a code refactoring with Roslyn via an interesting example.
Here is the link to the video: https://www.youtube.com/watch?v=-oxN-hNjD0Y
Try out DIVEX
I have just released an evaluation version of DIVEX, a dependency injection tool that allows you to compose objects and functions in C# in a way that makes your code more maintainable.
Check it out at https://divex.dev
If you try it, I would love to hear from you about it.
Coding practices: The most important ones – Part 3
In this third part of the article series, I continue talking about the most important coding practices based on my experience. In this part, I will talk about data modeling, and making state or impurities in general visible.
This article is published at the .NET Curry magazine, click here to read the article.
Deployment options for Roslyn analyzers (Video)
In this video, I explore the two deployment options for Roslyn analyzers (and CodeFix providers):
(1) Deployment via a Visual Studio extension (via a VSIX project)
(2) Deployment via a Nuget package
Here is the link to the video: https://www.youtube.com/watch?v=njZoHc1dB2k
Completing the CodeFix provider (Video)
In this video, I continue working on the CodeFix provider I created in the last video. I handle two cases:
1. The case where the full name of the ImmutableArray type is not used.
2. The case where the type of the argument passed to the Add method is not the same as the type of the immutable array element. This case requires the use of the semantic model to detect if there is an implicit case happening when passing the argument.
Here is the link to the video: https://www.youtube.com/watch?v=hw4CfdmhX5s