Skip to content

Latest commit

 

History

History

Atc.CodeAnalysis.CSharp

Atc.CodeAnalysis.CSharp

This library contains common extensions and factories for C# syntax.

Code documentation

References

References extended

SyntaxArgumentFactory examples

Using Create(..) to create argument identifier

var syntax = SyntaxArgumentFactory.Create("hallo");

As normalized text:

"hallo"

SyntaxClassDeclarationFactory examples

Using CreateAsPublicPartial(..) to create a public partial class syntax-declaration

var syntax = SyntaxClassDeclarationFactory.CreateAsPublicPartial("TestClass");

As normalized text:

public partial class TestClass { }