Open sandboxFocus

Method GetOverriddenMember

GetOverriddenMember(ISymbol?, bool)

Gets the member that the specified symbol overrides, if any.

Declaration
public static ISymbol? GetOverriddenMember(this ISymbol? symbol, bool returnNullIfMappingRequired = true)
Parameters
Type Name Description
ISymbol symbol

The Roslyn symbol (method, property, or event).

bool returnNullIfMappingRequired

Unused, for API consistency.

Returns
Type Description
ISymbol

The overridden member, or null if none or not applicable.