Skip to content
Concord

Class ShadowAttribute

Namespace
Concord
Assembly
Concord.Emit.dll

Opt-in marker consumed by Concord.Generators: generates the injected-member declaration (InjectFieldAttribute, InjectPropertyAttribute, or InjectMethodAttribute) for the named target member into the partial declaration class. Ignored at runtime.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ShadowAttribute : Attribute
Inheritance
ShadowAttribute
Inherited Members

Constructors

ShadowAttribute(string)

Initializes a shadow request for a uniquely-named target member.

public ShadowAttribute(string member)

Parameters

member string

The target member name.

ShadowAttribute(string, params Type[])

Initializes a shadow request disambiguating a method overload by parameter types.

public ShadowAttribute(string member, params Type[] parameterTypes)

Parameters

member string

The target method name.

parameterTypes Type[]

The parameter types of the overload to shadow.

Properties

Member

Gets the target member name.

public string Member { get; }

Property Value

string

ParameterTypes

Gets the overload parameter types, or null when not given.

public Type[]? ParameterTypes { get; }

Property Value

Type[]