Skip to main content

SymbolExtensions.IsParameterArrayOf Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
IsParameterArrayOf(IParameterSymbol, SpecialType, SpecialType, SpecialType)Returns true if the parameter was declared as a parameter array that has one of specified element types.
IsParameterArrayOf(IParameterSymbol, SpecialType, SpecialType)Returns true if the parameter was declared as a parameter array that has one of specified element types.
IsParameterArrayOf(IParameterSymbol, SpecialType)Returns true if the parameter was declared as a parameter array that has a specified element type.

IsParameterArrayOf(IParameterSymbol, SpecialType, SpecialType, SpecialType)

Returns true if the parameter was declared as a parameter array that has one of specified element types.

public static bool IsParameterArrayOf(this Microsoft.CodeAnalysis.IParameterSymbol parameterSymbol, Microsoft.CodeAnalysis.SpecialType elementType1, Microsoft.CodeAnalysis.SpecialType elementType2, Microsoft.CodeAnalysis.SpecialType elementType3)

Parameters

parameterSymbol IParameterSymbol

elementType1 SpecialType

elementType2 SpecialType

elementType3 SpecialType

Returns

Boolean

IsParameterArrayOf(IParameterSymbol, SpecialType, SpecialType)

Returns true if the parameter was declared as a parameter array that has one of specified element types.

public static bool IsParameterArrayOf(this Microsoft.CodeAnalysis.IParameterSymbol parameterSymbol, Microsoft.CodeAnalysis.SpecialType elementType1, Microsoft.CodeAnalysis.SpecialType elementType2)

Parameters

parameterSymbol IParameterSymbol

elementType1 SpecialType

elementType2 SpecialType

Returns

Boolean

IsParameterArrayOf(IParameterSymbol, SpecialType)

Returns true if the parameter was declared as a parameter array that has a specified element type.

public static bool IsParameterArrayOf(this Microsoft.CodeAnalysis.IParameterSymbol parameterSymbol, Microsoft.CodeAnalysis.SpecialType elementType)

Parameters

parameterSymbol IParameterSymbol

elementType SpecialType

Returns

Boolean