PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Assembly­Name­Extensions Class / Assembly­Name­Extensions Methods / Assembly­Name­Extensions.​To­Assembly­Name Method

AssemblyNameExtensions.ToAssemblyName Method

Converts an IAssemblyName into an AssemblyName.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public static AssemblyName ToAssemblyName(
	this IAssemblyName assemblyName
)

Parameters

assemblyName
Type: IAssemblyName
An IAssemblyName.

Return Value

Type: AssemblyName
The AssemblyName corresponding to assemblyName.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAssemblyName. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also