C# Class ErrorProne.NET.Extensions.TypeSymbolExtensions

ファイルを表示 Open project: SergeyTeplyakov/ErrorProne.NET

Public Methods

Method 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 method

public static Defaultvalue ( this symbol ) : string
symbol this
return string

FullName() public static method

public static FullName ( this symbol ) : string
symbol this
return string

GetEnumUnderlyingType() public static method

public static GetEnumUnderlyingType ( this enumType ) : ITypeSymbol
enumType this
return ITypeSymbol

IsEnum() public static method

public static IsEnum ( this type ) : bool
type this
return bool

IsNullableEnum() public static method

public static IsNullableEnum ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
return bool

IsNullablePrimitiveType() public static method

public static IsNullablePrimitiveType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
return bool

IsPrimitiveType() public static method

public static IsPrimitiveType ( this type ) : bool
type this
return bool

TryGetPrimitiveSize() public static method

public static TryGetPrimitiveSize ( this type, int &size ) : bool
type this
size int
return bool

UnwrapFromNullableType() public static method

public static UnwrapFromNullableType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : ITypeSymbol
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
return ITypeSymbol

UnwrapGenericIfNeeded() public static method

public static UnwrapGenericIfNeeded ( this type ) : ITypeSymbol
type this
return ITypeSymbol