MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsILocation­Binding<T>
Open sandboxFocus

ILocationBinding<T> Interface

In PostSharp, a binding was a run-time object that allowed the run-time code of the aspect to call the target code. In Metalama, aspects no longer have run-time code. Instead, they have templates that are expanded at compile time and generate run-time code. Templates can generate run-time code that accesses target code using dynamic code or invokers. For fields and properties, use meta.Target.FieldOrProperty. or IFieldOrProperty..Value.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public interface ILocationBinding<T> : ILocationBinding
Type Parameters
Name Description
T

Methods

Name Description
GetValue(ref Object, Arguments)

In Metalama, use meta.Target.FieldOrProperty. or IFieldOrProperty..Value.

SetValue(ref Object, Arguments, T)

In Metalama, use meta.Target.FieldOrProperty. or IFieldOrProperty..Value.

Extension Methods

LocationBindingExtensions.GetValue(ILocationBinding, Object, Arguments)
LocationBindingExtensions.GetValue<T>(ILocationBinding<T>, Object, Arguments)
LocationBindingExtensions.GetValue(ILocationBinding, Object)
LocationBindingExtensions.GetValue<T>(ILocationBinding<T>, Object)
LocationBindingExtensions.SetValue(ILocationBinding, Object, Arguments, Object)
LocationBindingExtensions.SetValue<T>(ILocationBinding<T>, Object, Arguments, T)
LocationBindingExtensions.SetValue<T>(ILocationBinding<T>, Object, T)
LocationBindingExtensions.SetValue(ILocationBinding, Object, Object)