Skip to content
Concord

Class InjectMethodAttribute

Namespace
Concord
Assembly
Concord.Emit.dll

Marks a declaration method as an injected member declaration for a method on the patched target type.

[AttributeUsage(AttributeTargets.Method)]
public sealed class InjectMethodAttribute : Attribute
Inheritance
InjectMethodAttribute
Inherited Members

Constructors

InjectMethodAttribute()

Initializes a declaration that resolves to a target method with the same name.

public InjectMethodAttribute()

InjectMethodAttribute(string)

Initializes a declaration that resolves to the named target method.

public InjectMethodAttribute(string targetName)

Parameters

targetName string

The target method name.

Properties

TargetName

Gets the target member name, or null to use the declaration name.

public string? TargetName { get; }

Property Value

string