Class DynamicCode12
New base class for v12 Dynamic Code Adds new properties and methods, and doesn't keep old / legacy APIs
Inheritance
Inherited Members
Namespace: ToSic.Sxc.Code
Assembly: ToSic.Sxc.dll
Syntax
[PublicApi]
public class DynamicCode12 : DynamicCode, IHasCodeLog, IWrapper<IDynamicCode>, IHasDynamicCodeRoot, INeedsDynamicCodeRoot, IDynamicCode12, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, ICompatibleToCode12
Properties
| Improve this Doc View SourceConvert
Conversion helper for common data conversions in Razor and WebAPIs
Declaration
public IConvertService Convert { get; }
Property Value
Type | Description |
---|---|
IConvertService |
Remarks
Added in 2sxc 12.05
Resources
Resources for this Scenario. This is a dynamic object based on the IDynamicStack.
It will combine both the Resources of the View and the App. The View-Resources will have priority. In future it may also include some global Resources.
🪒 Use in Razor: @Resources.CtaButtonLabel
Declaration
public dynamic Resources { get; }
Property Value
Type | Description |
---|---|
System.Object |
Remarks
New in 12.03
Settings
Settings for this Scenario. This is a dynamic object based on the IDynamicStack.
It will combine both the Settings of the View and the App. The View-Settings will have priority. In future it may also include some global Settings.
🪒 Use in Razor: @Settings.ItemsPerRow
Declaration
public dynamic Settings { get; }
Property Value
Type | Description |
---|---|
System.Object |
Remarks
New in 12.03