Context of an ApplyChanges(object, in ApplyChangesContext) operation.
Namespace: Metalama.Framework.Options
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public readonly struct ApplyChangesContextRemarks
This structure provides contextual information when options are being merged. The Axis property indicates the dimension along which merging is occurring (such as inheritance from base types, containing types, or namespaces), while the Declaration property identifies the target declaration for which options are being resolved.
Most implementations of ApplyChanges(object, in ApplyChangesContext) can ignore the context and simply merge properties
where the changes parameter wins over the current instance. However, advanced scenarios may use the
Axis to apply different merging logic based on the inheritance dimension.
Properties
| Name | Description |
|---|---|
| Axis | Gets the axis along which the merge operation is performed. |
| Declaration | Gets the declaration for which the merge operation is performed. |