PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message­Location Class / Message­Location Methods / Message­Location.​Of Method / Message­Location.​Of Method (IExpression)

MessageLocation.Of Method (IExpression)

Builds a MessageLocation from an IExpression.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static MessageLocation Of(
	IExpression expression
)

Parameters

expression
Type: PostSharp.Reflection.MethodBody.IExpression
An IExpression.

Return Value

Type: MessageLocation
A MessageLocation.
See Also