PostSharp.ILAPI ReferencePost­Sharp.​ReflectionReflection­Helper
Open sandboxFocus

ReflectionHelper Class

Provides helper methods for work with System.Reflection.

Inheritance
ReflectionHelper
Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
Syntax
public static class ReflectionHelper : Object

Methods

Name Description
AreInternalsVisibleTo(Assembly, Assembly)

Determines whether the InternalsVisibleToAttribute attribute relationship exists between two assemblies.

AreInternalsVisibleToCurrentProject(Assembly)

Determines whether the internals of a given assembly are visible to the current project.

GetAssemblyQualifiedTypeName(String, String)

Gets a properly-escaped assembly-qualified type name from its components.

GetEvent(Type, MethodInfo, MethodInfo, MethodInfo)
GetLocation(Type, MethodInfo, MethodInfo)
GetProperty(Type, MethodInfo, MethodInfo)
GetProperty(Type, MethodInfo, MethodInfo, Boolean)
GetSemanticInfo(MemberInfo)

Gets the SemanticInfo for a given member.

GetSemanticInfo(Type)

Gets the SemanticInfo for a given type.

IsAvailableInTargetFramework(MemberInfo)

Determines whether a given MemberInfo is available in the target framework of the current project.

IsAvailableInTargetFramework(Type)

Determines whether a given Type is available in the target framework of the current project.

IsCompilerGenerated(MemberInfo)

Determines whether a MemberInfo is compiler-generated.

IsCompilerGenerated(Type)

Determines whether a Type is compiler-generated.

ParseAssemblyQualifiedTypeName(String, out String, out String)

Parses an escaped assembly-qualified type name into its components.