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
memberstringThe 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
memberstringThe target method name.
parameterTypesType[]The parameter types of the overload to shadow.
Properties
Member
Gets the target member name.
public string Member { get; }
Property Value
ParameterTypes
Gets the overload parameter types, or null when not given.
public Type[]? ParameterTypes { get; }
Property Value
- Type[]