Problem The intent of the below code is to find all interfaces within a solution whose fully-qualified names match the […]
Tag: roslyn
Field Can Be Made Readonly
Problem Here is my Field Can Be Made Readonly analyzer and quick fix. I would appreciate tips on how to […]
Adding an attribute to a class after the documentation comment trivia
Problem I am trying to turn namespace DevComponents.WpfEditors.Primitives { /// <summary> /// Interaction logic for EditorFreeTextButton.xaml /// </summary> public partial […]
Using Roslyn to find interfaces within a solution
Problem The intent of the below code is to find all interfaces within a solution whose fully-qualified names match the […]
Code Fix – changing accessibility
Problem I am trying to get the hang of Roslyn at the moment, and to implement a couple of code […]
Adding compile-time format validation to your string.Format calls
Problem I’ve written another diagnostic for VSDiagnostics that adds compile-time security for your formatting specified in a string.Format call. The […]
Getting the previous sibling of a node using Roslyn [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Lacks concrete context: Code Review requires concrete code […]
Putting everything in its place
Problem A new diagnostic has seen the light of day! This one will alert you when you have a string.Format() […]
Add Missing XML Doc Parameters
Problem This is an analyzer and code fix for VSDiagnostics that detects when a doc comment on a method does […]
Tool to Add Access Modifiers to Code
Problem Working on VSDiagnostics, I implemented a tool that adds the default access modifiers to C# code. An example use […]