PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message­Location Class / Message­Location Methods

MessageLocation Methods

The MessageLocation type exposes the following members.

Methods
  NameDescription
Public methodStatic memberExplicit(String)
Builds a MessageLocation explicitly by specifying a filename, when the
Public methodStatic memberExplicit(String, Int32, Int32)
Builds a MessageLocation explicitly by specifying a filename, line, and column.
Public methodStatic memberExplicit(String, Int32, Int32, Int32, Int32)
Builds a MessageLocation explicitly by specifying a filename, line, and column.
Public methodStatic memberOf(Object)
Builds a MessageLocation from an object representing an element of code (Type, MethodInfo, ConstructorInfo, FieldInfo, IExpression, Assembly, ParameterInfo, EventInfo, PropertyInfo or, if you are using PostSharp SDK, any Declaration).
Public methodStatic memberOf(Assembly)
Builds a MessageLocation from an Assembly.
Public methodStatic memberOf(MemberInfo)
Public methodStatic memberOf(ParameterInfo)
Builds a MessageLocation from a ParameterInfo.
Public methodStatic memberOf(IExpression)
Builds a MessageLocation from an IExpression.
Public methodStatic memberOf(LocationInfo)
Builds a MessageLocation from a LocationInfo.
Public methodStatic memberOf(SymbolSequencePoint)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also