Table of Contents

Class RazorTyped<TModel>

Namespace
Custom.Hybrid
Assembly
ToSic.Sxc.Dnn.Razor.dll

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 your AppCode

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