Class RazorTyped<TModel>
New base class with custom model. The rest of this is identical to RazorTyped.
[PublicApi]
public abstract class RazorTyped<TModel> : RazorTyped, IHasLog
Type Parameters
TModel
Model type - like
string
or a class from yourAppCode
- Inheritance
-
RazorTyped<TModel>
- Implements
- Inherited Members
Remarks
Introduced in v17.03
Properties
Model
The model for this Razor file.
Typed according to the @inherits
statement.
public TModel Model { get; }
Property Value
- TModel