-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Currently, we can create templates that are applied based on the underlying type.
I'd like to be able to create templates that are optionally applied if the underlying type matches AND some other marker is also present on the partial type.
public partial readonly record struct MyId : IStructId<long>;
public interface IMarkerFunnyStuff;
// This template is NOT applied because MyId does not implement IMarkerFunnyStuff
[TStructId]
file partial readonly record struct TSelf(long Value)
{
public void DoFunnyStuff() {}
}
// Adding this to the template file means that the template is ONLY applied if MyId also implements IMarkerFunnyStuff
file partial record struct TSelf : IMarkerFunnyStuff;Metadata
Metadata
Assignees
Labels
No labels
