C# Класс ErrorProne.NET.Extensions.TypeSymbolExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Defaultvalue() публичный статический Метод

public static Defaultvalue ( this symbol ) : string
symbol this
Результат string

FullName() публичный статический Метод

public static FullName ( this symbol ) : string
symbol this
Результат string

GetEnumUnderlyingType() публичный статический Метод

public static GetEnumUnderlyingType ( this enumType ) : ITypeSymbol
enumType this
Результат ITypeSymbol

IsEnum() публичный статический Метод

public static IsEnum ( this type ) : bool
type this
Результат bool

IsNullableEnum() публичный статический Метод

public static IsNullableEnum ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
Результат bool

IsNullablePrimitiveType() публичный статический Метод

public static IsNullablePrimitiveType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : bool
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
Результат bool

IsPrimitiveType() публичный статический Метод

public static IsPrimitiveType ( this type ) : bool
type this
Результат bool

TryGetPrimitiveSize() публичный статический Метод

public static TryGetPrimitiveSize ( this type, int &size ) : bool
type this
size int
Результат bool

UnwrapFromNullableType() публичный статический Метод

public static UnwrapFromNullableType ( this type, Microsoft.CodeAnalysis.SemanticModel semanticModel ) : ITypeSymbol
type this
semanticModel Microsoft.CodeAnalysis.SemanticModel
Результат ITypeSymbol

UnwrapGenericIfNeeded() публичный статический Метод

public static UnwrapGenericIfNeeded ( this type ) : ITypeSymbol
type this
Результат ITypeSymbol