SymbolExtensions.IsNullableOf Method
Containing Type: SymbolExtensions
Assembly: Roslynator.Core.dll
Overloads
Method | Summary |
---|---|
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
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
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
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