Table of Contents

Class RoslynCommentService

Namespace
SunamoRoslyn.Services
Assembly
SunamoRoslyn.dll

Provides functionality for removing comments from C# source code using Roslyn.

public class RoslynCommentService
Inheritance
RoslynCommentService
Inherited Members
Extension Methods

Methods

RemoveComments(string)

Removes all comments (single-line, multi-line, and documentation) from the given C# source code.

public string RemoveComments(string code)

Parameters

code string

The C# source code to remove comments from.

Returns

string

The source code with all comments removed.