PostSharpAPI ReferencePost­Sharp.​ExtensibilityIMessage­Location­ResolverGet­Message­Location
Open sandboxFocus

IMessageLocationResolver.GetMessageLocation Method

GetMessageLocation(Object)

Gets the file and line where a declaration is declared.

Declaration
MessageLocation GetMessageLocation(object codeElement)
Parameters
Type Name Description
Object codeElement

A System.Reflection.MemberInfo, System.Type, ParameterInfo or LocationInfo.

Returns
Type Description
MessageLocation

A MessageLocation describing where codeElement is declared, or Unknown if the location cannot be determined.