Table of Contents

Class DynamicJacketBase

Namespace
ToSic.Sxc.Data
Assembly
ToSic.Sxc.dll

Base class for DynamicJackets. You won't use this, just included in the docs.
To check if something is an array or an object, use "IsArray"

[InternalApi_DoNotUse_MayChangeWithoutNotice("just use the objects from AsDynamic, don't use this directly")]
public abstract class DynamicJacketBase : DynamicObject, IDynamicMetaObjectProvider, IReadOnlyList<object>, IReadOnlyCollection<object>, IEnumerable<object>, IEnumerable
Inheritance
DynamicJacketBase
Implements
Derived

Properties

Count

Count array items or object properties

public abstract int Count { get; }

Property Value

int

IsList

Check if it's an array.

public abstract bool IsList { get; }

Property Value

bool

True if an array/list, false if an object.

this[int]

Not yet implemented accessor - must be implemented by the inheriting class.

public abstract object this[int index] { get; }

Parameters

index int

Property Value

object

a NotImplementedException

Methods

Get(string)

public dynamic Get(string name)

Parameters

name string

Returns

dynamic

GetEnumerator()

Enable enumeration. When going through objects (properties) it will return the keys, not the values.
Use the [key] accessor to get the values as DynamicJacketList or ToSic.Sxc.Data

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract IEnumerator<object> GetEnumerator()

Returns

IEnumerator<object>