Skip to content

SQL-MisterMagoo/BlazorPartialConstraint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project demonstrates a constraint on a generic component

Please look at ConstrainedComponent in the Shared folder and its usage in Index.razor.

The compiler may not infer the type so you can specify the type as demonstrated here

<ConstrainedComponent SomeThing="Dummy" TItem="DateTime"></ConstrainedComponent>

Note: TItem="DateTime" tells the compiler that your generic type is a DateTime.

About

Demonstrate Generic Component with Type Constraint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published