IMessageLocationResolver.GetMessageLocation Method |
Gets the file and line where a declaration is declared.
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
MessageLocation GetMessageLocation( Object codeElement )
Parameters
- codeElement
- Type: System.Object
A MemberInfo, Type, ParameterInfo or LocationInfo.
Return Value
Type: MessageLocationA MessageLocation describing where codeElement is declared, or Unknown if the location cannot be determined.