DORSETRIGS
Home

roslyn (11 post)


posts by category not found!

Roslyn - Create MetadataReference from in-memory assembly

Building Roslyn Metadata References from In Memory Assemblies Roslyn the NET Compiler Platform provides powerful tools for analyzing and manipulating C code One

2 min read 07-10-2024 24
Roslyn - Create MetadataReference from in-memory assembly
Roslyn - Create MetadataReference from in-memory assembly

How do I get the type of an attribute type in Roslyn code generator?

Understanding Attribute Types in Roslyn Code Generation When working with Roslyn Microsofts NET Compiler Platform developers often need to interact with various

3 min read 21-09-2024 44
How do I get the type of an attribute type in Roslyn code generator?
How do I get the type of an attribute type in Roslyn code generator?

Ban entire namespace with BannedApiAnalyzers

How to Ban an Entire Namespace with Banned Api Analyzers In software development it s not uncommon to run into situations where certain APIs or namespaces shoul

2 min read 14-09-2024 62
Ban entire namespace with BannedApiAnalyzers
Ban entire namespace with BannedApiAnalyzers

Matching Mono.Cecil.MethodDefinition with the respective Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax

Matching Mono Cecil Method Definition with Microsoft Code Analysis C Sharp Syntax Base Method Declaration Syntax When working on C projects developers often enc

3 min read 14-09-2024 43
Matching Mono.Cecil.MethodDefinition with the respective Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax
Matching Mono.Cecil.MethodDefinition with the respective Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax

Get caller information in C# for multiple calls on same line

How to Get Caller Information for Multiple Calls on the Same Line in C Imagine you re building a C application that needs to handle multiple phone calls simulta

2 min read 13-09-2024 46
Get caller information in C# for multiple calls on same line
Get caller information in C# for multiple calls on same line

How to run Roslyn instead csc.exe from command line?

Ditch csc exe How to Use Roslyn from the Command Line Tired of seeing the This compiler is provided as part of the Microsoft R NET Framework but only supports l

2 min read 06-09-2024 53
How to run Roslyn instead csc.exe from command line?
How to run Roslyn instead csc.exe from command line?

Implicit conversion when calling an extension method not possible

Why Implicit Conversion Doesnt Work with Extension Methods A Deep Dive Extension methods are a powerful feature in C that allows you to add functionality to exi

2 min read 05-09-2024 40
Implicit conversion when calling an extension method not possible
Implicit conversion when calling an extension method not possible

Which step does SyntaxNodeAnalysisContext class represent actually?

Demystifying Roslyns Syntax Node Analysis Context A Deep Dive into C Code Analysis Understanding the role of the Syntax Node Analysis Context class in Roslyns c

2 min read 31-08-2024 49
Which step does SyntaxNodeAnalysisContext class represent actually?
Which step does SyntaxNodeAnalysisContext class represent actually?

Detect nullable enum type in source generator

Detecting Nullable Enum Types in C Source Generators Source generators in C are a powerful tool for extending the compilers capabilities They enable custom code

2 min read 29-08-2024 52
Detect nullable enum type in source generator
Detect nullable enum type in source generator

Detect array type in source generator

Detecting Array Types in C Source Generators A Deep Dive Source generators are a powerful tool in C for extending the compiler and generating code at compile ti

2 min read 29-08-2024 60
Detect array type in source generator
Detect array type in source generator

Find all derived classes in a source generator

Finding Derived Classes in a Source Generator A Comprehensive Guide Source generators are powerful tools in C that allow you to generate code at compile time Ho

2 min read 29-08-2024 53
Find all derived classes in a source generator
Find all derived classes in a source generator