Class RoslynExtensions
Inheritance
RoslynExtensions
Assembly: Neon.Roslyn.dll
Syntax
public static class RoslynExtensions
Methods
GetCustomAttribute<T>(RoslynFieldInfo)
Declaration
public static T GetCustomAttribute<T>(this RoslynFieldInfo type)
Parameters
Returns
Type Parameters
GetCustomAttribute<T>(RoslynPropertyInfo)
Declaration
public static T GetCustomAttribute<T>(this RoslynPropertyInfo type)
Parameters
Returns
Type Parameters
GetCustomAttribute<T>(RoslynType)
Declaration
public static T GetCustomAttribute<T>(this RoslynType type)
Parameters
Returns
Type Parameters
GetCustomAttribute<T>(CustomAttributeData)
Declaration
public static T GetCustomAttribute<T>(this CustomAttributeData attributeData)
Parameters
Returns
Type Parameters
GetCustomAttribute<T>(PropertyInfo)
Declaration
public static T GetCustomAttribute<T>(this PropertyInfo prop)
Parameters
Returns
Type Parameters
GetCustomAttribute<T>(Type)
Declaration
public static T GetCustomAttribute<T>(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type Parameters
GetCustomAttributes<T>(PropertyInfo, bool)
Declaration
public static IEnumerable<T> GetCustomAttributes<T>(this PropertyInfo prop, bool inherited = false)
Parameters
Returns
Type Parameters
GetCustomAttributes<T>(Type, bool)
Declaration
public static IEnumerable<T> GetCustomAttributes<T>(this Type type, bool inherited = false)
Parameters
Type |
Name |
Description |
Type |
type |
|
bool |
inherited |
|
Returns
Type Parameters
GetDefault(Type)
Declaration
public static dynamic GetDefault(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
GetFieldSymbol(FieldInfo)
Declaration
public static IFieldSymbol GetFieldSymbol(this FieldInfo field)
Parameters
Returns
Type |
Description |
IFieldSymbol |
|
Declaration
public static string GetFullMetadataName(this ClassDeclarationSyntax s)
Parameters
Type |
Name |
Description |
ClassDeclarationSyntax |
s |
|
Returns
Declaration
public static string GetFullMetadataName(this ISymbol s)
Parameters
Type |
Name |
Description |
ISymbol |
s |
|
Returns
GetMethodSymbol(MethodInfo)
Declaration
public static IMethodSymbol GetMethodSymbol(this MethodInfo methodInfo)
Parameters
Returns
Type |
Description |
IMethodSymbol |
|
GetNamedTypeSymbols(Compilation)
Declaration
public static IEnumerable<INamedTypeSymbol> GetNamedTypeSymbols(this Compilation compilation)
Parameters
Type |
Name |
Description |
Compilation |
compilation |
|
Returns
GetNamespace(SyntaxNode)
Declaration
public static string GetNamespace(this SyntaxNode s)
Parameters
Type |
Name |
Description |
SyntaxNode |
s |
|
Returns
GetParameterSymbol(ParameterInfo)
Declaration
public static IParameterSymbol GetParameterSymbol(this ParameterInfo parameterInfo)
Parameters
Returns
Type |
Description |
IParameterSymbol |
|
GetPropertySymbol(PropertyInfo)
Declaration
public static IPropertySymbol GetPropertySymbol(this PropertyInfo property)
Parameters
Returns
Type |
Description |
IPropertySymbol |
|
GetTypeSymbol(Type)
Declaration
public static ITypeSymbol GetTypeSymbol(this Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
ITypeSymbol |
|