PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / IPost­Sharp­Environment Interface / IPost­Sharp­Environment Methods / IPost­Sharp­Environment.​Find­Assembly Method / IPost­Sharp­Environment.​Find­Assembly Method (Assembly­Name, Assembly­Load­Context)

IPostSharpEnvironment.FindAssembly Method (AssemblyName, AssemblyLoadContext)

Finds the location of an assembly given its name.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
string FindAssembly(
	AssemblyName name,
	AssemblyLoadContext loadContext
)

Parameters

name
Type: System.Reflection.AssemblyName
Assembly name.
loadContext
Type: PostSharp.Extensibility.AssemblyLoadContext
Reference or Runtime.

Return Value

Type: String
The full path of the assembly, or null if the assembly could not be found.
See Also