Open sandboxFocus

Property Id

Id

An identifier that can be used to reference this template from advising methods. When set, this identifier can be passed to advising methods such as IntroduceMethod(IAdviser<INamedType>, string, IntroductionScope, OverrideStrategy, Action<IMethodBuilder>?, object?, object?) instead of the member name. This allows referencing templates by a stable identifier, which is useful when templates are defined in a separate assembly from the code that uses them.

Declaration
public string? Id { get; init; }
Property Value
Type Description
string