Of(SymbolSequencePoint)
Builds a MessageLocation from a SymbolSequencePoint.
Declaration
public static MessageLocation Of(SymbolSequencePoint symbolSequencePoint)Parameters
| Type | Name | Description |
|---|---|---|
| SymbolSequencePoint | symbolSequencePoint |
Returns
| Type | Description |
|---|---|
| MessageLocation | A MessageLocation corresponding to |
Of(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).
Declaration
public static MessageLocation Of(object codeElement)Parameters
| Type | Name | Description |
|---|---|---|
| object | codeElement | an object representing an
element of code (Type, MethodInfo, ConstructorInfo,
FieldInfo, Assembly, ParameterInfo, EventInfo,
PropertyInfo, IExpression or, if you are using PostSharp SDK, any |
Returns
| Type | Description |
|---|---|
| MessageLocation | A MessageLocation representing |
Remarks
<p>If <code class="paramref">codeElement</code> is <code>null</code> or cannot mapped to a location of code,
this method silently returns Unknown.
Of(MemberInfo)
Builds a MessageLocation from a MemberInfo (Type, MethodInfo, ConstructorInfo, FieldInfo, PropertyInfo, EventInfo).
Declaration
public static MessageLocation Of(MemberInfo member)Parameters
| Type | Name | Description |
|---|---|---|
| MemberInfo | member | An element of code (Type, MethodInfo, ConstructorInfo, FieldInfo, PropertyInfo, EventInfo). |
Returns
| Type | Description |
|---|---|
| MessageLocation |
Of(ParameterInfo)
Builds a MessageLocation from a ParameterInfo.
Declaration
public static MessageLocation Of(ParameterInfo parameter)Parameters
| Type | Name | Description |
|---|---|---|
| ParameterInfo | parameter |
Returns
| Type | Description |
|---|---|
| MessageLocation |
Of(LocationInfo)
Builds a MessageLocation from a LocationInfo.
Declaration
public static MessageLocation Of(LocationInfo location)Parameters
| Type | Name | Description |
|---|---|---|
| LocationInfo | location | A LocationInfo. |
Returns
| Type | Description |
|---|---|
| MessageLocation |
Of(Assembly)
Builds a MessageLocation from an Assembly.
Declaration
public static MessageLocation Of(Assembly assembly)Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly |
Returns
| Type | Description |
|---|---|
| MessageLocation |
Of(IExpression)
Builds a MessageLocation from an IExpression.
Declaration
public static MessageLocation Of(IExpression expression)Parameters
| Type | Name | Description |
|---|---|---|
| IExpression | expression | An IExpression. |
Returns
| Type | Description |
|---|---|
| MessageLocation |