Class InjectFieldAttribute
- Namespace
- Concord
- Assembly
- Concord.Emit.dll
Marks a declaration field as an injected field declaration for a field on the patched target type.
[AttributeUsage(AttributeTargets.Field)]
[MeansImplicitUse(ImplicitUseKindFlags.Access|ImplicitUseKindFlags.Assign)]
public sealed class InjectFieldAttribute : Attribute
- Inheritance
-
InjectFieldAttribute
- Inherited Members
Constructors
InjectFieldAttribute()
Initializes a declaration that resolves to a target field with the same name.
public InjectFieldAttribute()
InjectFieldAttribute(string)
Initializes a declaration that resolves to the named target field.
public InjectFieldAttribute(string targetName)
Parameters
targetNamestringThe target field name.
Properties
TargetName
Gets the target member name, or null to use the declaration name.
public string? TargetName { get; }