Class CallbackInfo<T>
- Namespace
- Concord
- Assembly
- Concord.Emit.dll
Compile-time marker passed to non-void-target injections that can inspect, replace, or supply the target method's return value.
public sealed class CallbackInfo<T>
Type Parameters
TThe return type of the target method.
- Inheritance
-
CallbackInfo<T>
- Inherited Members
Remarks
Concord lowers calls and property access on this type into wrapper locals while composing IL. Runtime instances are not allocated on the patched method hot path.
Properties
ReturnValue
Gets or sets the target method result carried by the generated wrapper.
public T ReturnValue { get; set; }
Property Value
- T
Methods
Cancel()
Marks the current injection as cancelling the original target invocation.
public void Cancel()