MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeSource­ReferenceGet­Text
Open sandboxFocus

SourceReference.GetText Method

GetText(Boolean)

Gets the text representation (i.e. the source code) of the current syntax node or token.

Declaration
public string GetText(bool normalized = false)
Parameters
Type Name Description
Boolean normalized

true if whitespace should be normalized, false if the original formatting should be preserved.

Returns
Type Description
String

The source code of the current syntax node.