MessageLocation.Of Method (Object) |
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 6.9.11.0 (6.9.11.0)
public static MessageLocation Of( Object codeElement )
Parameters
- codeElement
- Type: System.Object
an object representing an element of code (Type, MethodInfo, ConstructorInfo, FieldInfo, Assembly, ParameterInfo, EventInfo, PropertyInfo, IExpression or, if you are using PostSharp SDK, any Declaration.
Return Value
Type: MessageLocationA MessageLocation representing codeElement.
If codeElement is null or cannot mapped to a location of code, this method silently returns Unknown.