-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestion
Description
I found a case where instead of one generic parameter, i needed to allow for 2 generic parameters. Its a case where for example, a component where it needs to be enum and also some other class as well. For example, there could be a list picker that is generic that is being used and one generic parameter is piece data and the other is an enum. I know in a normal class, i do something like this
public class SimpleEnumPickerVM<E, PI> : SimpleControlObservable where PI : BaseGraphicsCP, IEnumPiece, new()
where E : struct, Enum
however, in blazor even when using partial classes, when i do the razor part, it won't allow the second parameter when using the typeparam.
Metadata
Metadata
Assignees
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestion