Class Code14<TModel, TServiceKit>
Base class for v14 Dynamic Code files.
Will provide the ServiceKit specified by the type TServiceKit
on property Kit
.
Inheritance
System.Object
ToSic.Lib.Services.ServiceBase
ToSic.Sxc.Services.ServiceForDynamicCode
Code14<TModel, TServiceKit>
Inherited Members
Namespace: Custom.Hybrid.Advanced
Assembly: ToSic.Sxc.dll
Syntax
[InternalApi_DoNotUse_MayChangeWithoutNotice("WIP v14.07")]
public abstract class Code14<TModel, TServiceKit> : DynamicCode, IHasCodeLog, IWrapper<IDynamicCode>, IHasDynamicCodeRoot, INeedsDynamicCodeRoot, IDynamicCode14<TModel, TServiceKit>, ICompatibleToCode12, IDynamicCode<TModel, TServiceKit>, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, IDynamicCodeKit<TServiceKit> where TModel : class where TServiceKit : ServiceKit
Type Parameters
Name | Description |
---|---|
TModel | not yet used - pls always use |
TServiceKit | The ServiceKit provided on |
Remarks
Important: The property Convert
which exited on Razor12 was removed. use Kit.Convert
instead.
Properties
| Improve this Doc View SourceKit
Declaration
public TServiceKit Kit { get; }
Property Value
Type | Description |
---|---|
TServiceKit |
Resources
Declaration
public dynamic Resources { get; }
Property Value
Type | Description |
---|---|
System.Object |
Settings
Declaration
public dynamic Settings { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceAsTyped(Object, String)
Declaration
public ITypedItem AsTyped(object target, string noParamOrder = "Params must be named (https://r.2sxc.org/named-params)")
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | |
System.String | noParamOrder |
Returns
Type | Description |
---|---|
ITypedItem |
AsTypedList(Object, String)
Declaration
public IEnumerable<ITypedItem> AsTypedList(object list, string noParamOrder = "Params must be named (https://r.2sxc.org/named-params)")
Parameters
Type | Name | Description |
---|---|---|
System.Object | list | |
System.String | noParamOrder |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ITypedItem> |