PostSharpAPI ReferencePost­Sharp.​ReflectionReflection­HelperIs­Available­In­Target­Framework
Open sandboxFocus

ReflectionHelper.IsAvailableInTargetFramework Method

IsAvailableInTargetFramework(MemberInfo)

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

Declaration
public static bool IsAvailableInTargetFramework(this MemberInfo memberInfo)
Parameters
Type Name Description
System.Reflection.MemberInfo memberInfo

A declaration that necessarily exists in the build-time framework.

Returns
Type Description
Boolean

IsAvailableInTargetFramework(Type)

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

Declaration
public static bool IsAvailableInTargetFramework(this Type type)
Parameters
Type Name Description
Type type

A declaration that necessarily exists in the build-time framework.

Returns
Type Description
Boolean