Skip to main content

ISymbol Interface Extensions

Extension MethodSummary
GetAttribute(ISymbol, INamedTypeSymbol)Returns the attribute for the symbol that matches the specified attribute class, or null if the symbol does not have the specified attribute.
GetAttribute(ISymbol, MetadataName)Returns the attribute for the symbol that matches the specified name, or null if the symbol does not have the specified attribute.
HasAttribute(ISymbol, INamedTypeSymbol)Returns true if the symbol has the specified attribute.
HasAttribute(ISymbol, MetadataName)Returns true if the symbol has attribute with the specified name.
HasMetadataName(ISymbol, MetadataName)Returns true if a symbol has the specified MetadataName.
ImplementsInterfaceMember(ISymbol, Boolean)Returns true if the symbol implements any interface member.
ImplementsInterfaceMember(ISymbol, INamedTypeSymbol, Boolean)Returns true if the symbol implements any member of the specified interface.
ImplementsInterfaceMember<TSymbol>(ISymbol, Boolean)Returns true if the symbol implements any interface member.
ImplementsInterfaceMember<TSymbol>(ISymbol, INamedTypeSymbol, Boolean)Returns true if the symbol implements any member of the specified interface.
IsAsyncMethod(ISymbol)Returns true if the symbol is an async method.
IsErrorType(ISymbol)Returns true if the symbol represents an error.
IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind)Returns true if the symbol is the specified kind.
IsPubliclyVisible(ISymbol)Return true if the specified symbol is publicly visible.