C# Class ErrorProne.NET.Extensions.TypeSymbolExtensions

Afficher le fichier Open project: SergeyTeplyakov/ErrorProne.NET

Méthodes publiques

Méthode Description
Defaultvalue ( this symbol ) : string
FullName ( this symbol ) : string
GetEnumUnderlyingType ( this enumType ) : ITypeSymbol
IsEnum ( this type ) : bool
IsNullableEnum ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
IsNullablePrimitiveType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
IsPrimitiveType ( this type ) : bool
TryGetPrimitiveSize ( this type, int &size ) : bool
UnwrapFromNullableType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : ITypeSymbol
UnwrapGenericIfNeeded ( this type ) : ITypeSymbol

Method Details

Defaultvalue() public static méthode

public static Defaultvalue ( this symbol ) : string
symbol this
Résultat string

FullName() public static méthode

public static FullName ( this symbol ) : string
symbol this
Résultat string

GetEnumUnderlyingType() public static méthode

public static GetEnumUnderlyingType ( this enumType ) : ITypeSymbol
enumType this
Résultat ITypeSymbol

IsEnum() public static méthode

public static IsEnum ( this type ) : bool
type this
Résultat bool

IsNullableEnum() public static méthode

public static IsNullableEnum ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
Résultat bool

IsNullablePrimitiveType() public static méthode

public static IsNullablePrimitiveType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
Résultat bool

IsPrimitiveType() public static méthode

public static IsPrimitiveType ( this type ) : bool
type this
Résultat bool

TryGetPrimitiveSize() public static méthode

public static TryGetPrimitiveSize ( this type, int &size ) : bool
type this
size int
Résultat bool

UnwrapFromNullableType() public static méthode

public static UnwrapFromNullableType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : ITypeSymbol
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
Résultat ITypeSymbol

UnwrapGenericIfNeeded() public static méthode

public static UnwrapGenericIfNeeded ( this type ) : ITypeSymbol
type this
Résultat ITypeSymbol