Skip to main content

SymbolExtensions.IsNullableOf Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads​

MethodSummary
IsNullableOf(INamedTypeSymbol, ITypeSymbol)Returns true if the type is Nullable<T> and it has specified type argument.
IsNullableOf(INamedTypeSymbol, SpecialType)Returns true if the type is Nullable<T> and it has specified type argument.
IsNullableOf(ITypeSymbol, ITypeSymbol)Returns true if the type is Nullable<T> and it has specified type argument.
IsNullableOf(ITypeSymbol, SpecialType)Returns true if the type is Nullable<T> and it has specified type argument.

IsNullableOf(INamedTypeSymbol, ITypeSymbol)​

Returns true if the type is Nullable<T> and it has specified type argument.

public static bool IsNullableOf(this Microsoft.CodeAnalysis.INamedTypeSymbol namedTypeSymbol, Microsoft.CodeAnalysis.ITypeSymbol typeArgument)

Parameters​

namedTypeSymbol   INamedTypeSymbol

typeArgument   ITypeSymbol

Returns​

Boolean

IsNullableOf(INamedTypeSymbol, SpecialType)​

Returns true if the type is Nullable<T> and it has specified type argument.

public static bool IsNullableOf(this Microsoft.CodeAnalysis.INamedTypeSymbol namedTypeSymbol, Microsoft.CodeAnalysis.SpecialType specialType)

Parameters​

namedTypeSymbol   INamedTypeSymbol

specialType   SpecialType

Returns​

Boolean

IsNullableOf(ITypeSymbol, ITypeSymbol)​

Returns true if the type is Nullable<T> and it has specified type argument.

public static bool IsNullableOf(this Microsoft.CodeAnalysis.ITypeSymbol typeSymbol, Microsoft.CodeAnalysis.ITypeSymbol typeArgument)

Parameters​

typeSymbol   ITypeSymbol

typeArgument   ITypeSymbol

Returns​

Boolean

IsNullableOf(ITypeSymbol, SpecialType)​

Returns true if the type is Nullable<T> and it has specified type argument.

public static bool IsNullableOf(this Microsoft.CodeAnalysis.ITypeSymbol typeSymbol, Microsoft.CodeAnalysis.SpecialType specialType)

Parameters​

typeSymbol   ITypeSymbol

specialType   SpecialType

Returns​

Boolean