Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 2.17 KB

File metadata and controls

27 lines (18 loc) · 2.17 KB

SymbolExtensions Class

HomeMethods

Namespace: Roslynator.CSharp

Assembly: Roslynator.CSharp.dll

A set of static methods for ISymbol and derived types.

public static class SymbolExtensions

Methods

Method Summary
SupportsConstantValue(ITypeSymbol) Returns true if the specified type can be used to declare constant value.
ToMinimalTypeSyntax(INamespaceOrTypeSymbol, SemanticModel, Int32, SymbolDisplayFormat) Creates a new TypeSyntax based on the specified namespace or type symbol
ToMinimalTypeSyntax(INamespaceSymbol, SemanticModel, Int32, SymbolDisplayFormat) Creates a new TypeSyntax based on the specified namespace symbol.
ToMinimalTypeSyntax(ITypeSymbol, SemanticModel, Int32, SymbolDisplayFormat) Creates a new TypeSyntax based on the specified type symbol.
ToTypeSyntax(INamespaceOrTypeSymbol, SymbolDisplayFormat) Creates a new TypeSyntax based on the specified namespace or type symbol.
ToTypeSyntax(INamespaceSymbol, SymbolDisplayFormat) Creates a new TypeSyntax based on the specified namespace symbol.
ToTypeSyntax(ITypeSymbol, SymbolDisplayFormat) Creates a new TypeSyntax based on the specified type symbol.