PostSharp.ILAPI ReferencePost­Sharp.​ExtensibilityMessage­LocationExplicit
Open sandboxFocus

MessageLocation.Explicit Method

Explicit(String, Int32, Int32, Int32, Int32)

Builds a MessageLocation explicitly by specifying a filename, line, and column.

Declaration
public static MessageLocation Explicit(string file, int lineStart, int columnStart, int lineEnd, int columnEnd)
Parameters
Type Name Description
String file

File name.

System.Int32 lineStart

Starting line number.

System.Int32 columnStart

Starting column number.

System.Int32 lineEnd

Ending line number.

System.Int32 columnEnd

Ending column number.

Returns
Type Description
MessageLocation

A MessageLocation.

Explicit(String, Int32, Int32)

Builds a MessageLocation explicitly by specifying a filename, line, and column.

Declaration
public static MessageLocation Explicit(string file, int line, int column)
Parameters
Type Name Description
String file

File name.

System.Int32 line

Line number.

System.Int32 column

Column number.

Returns
Type Description
MessageLocation

A MessageLocation.

Explicit(String)

Builds a MessageLocation explicitly by specifying a filename, when the

Declaration
public static MessageLocation Explicit(string file)
Parameters
Type Name Description
String file

File name.

Returns
Type Description
MessageLocation

A MessageLocation.