Table of Contents

Class ReadOnlyMacroObjectWrapper<TObject>

Namespace
CMS.MacroEngine
Assembly
CMS.MacroEngine.dll

Wrapper for read-only version of the hierarchical object.

public class ReadOnlyMacroObjectWrapper<TObject> : ReadOnlyAbstractHierarchicalObject<ReadOnlyMacroObjectWrapper<TObject>>, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable

Type Parameters

TObject
Inheritance
object
ReadOnlyMacroObjectWrapper<TObject>
Implements
Inherited Members
Extension Methods

Constructors

ReadOnlyMacroObjectWrapper()

Constructor

public ReadOnlyMacroObjectWrapper()

ReadOnlyMacroObjectWrapper(TObject)

Constructor

public ReadOnlyMacroObjectWrapper(TObject objectInstance)

Parameters

objectInstance TObject

Object instance

Methods

RegisterColumn(string, Func<TObject, object>)

Registers the given Column to the object

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterColumn(string columnName, Func<TObject, object> lambdaExpr)

Parameters

columnName string

Column name

lambdaExpr Func<TObject, object>

Lambda expression for the getter of the property (object, parameter) => return value

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

RegisterColumn(string, Func<TObject, object>, Func<TObject, object, object>)

Registers the given Column to the object

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterColumn(string columnName, Func<TObject, object> lambdaExpr, Func<TObject, object, object> setLambdaExpr)

Parameters

columnName string

Column name

lambdaExpr Func<TObject, object>

Lambda expression for the getter of the property (object, parameter) => return value

setLambdaExpr Func<TObject, object, object>

Lambda expression for the setter of the property (object, parameter, value) => set

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

RegisterColumn<ColumnType>(string, Func<TObject, object>)

Registers the given Column to the object

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterColumn<ColumnType>(string columnName, Func<TObject, object> lambdaExpr) where ColumnType : new()

Parameters

columnName string

Column name

lambdaExpr Func<TObject, object>

Lambda expression for the getter of the property (object, parameter) => return value

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

Type Parameters

ColumnType

RegisterColumn<ColumnType>(string, Func<TObject, object>, Func<TObject, object, object>)

Registers the given Column to the object

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterColumn<ColumnType>(string columnName, Func<TObject, object> lambdaExpr, Func<TObject, object, object> setLambdaExpr) where ColumnType : new()

Parameters

columnName string

Column name

lambdaExpr Func<TObject, object>

Lambda expression for the getter of the property (object, parameter) => return value

setLambdaExpr Func<TObject, object, object>

Lambda expression for the setter of the property (object, parameter, value) => set

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

Type Parameters

ColumnType

RegisterProperty(string, Func<TObject, object>)

Registers the given property to the object

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterProperty(string propertyName, Func<TObject, object> ex)

Parameters

propertyName string

Property name

ex Func<TObject, object>

Lambda expression

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

RegisterProperty(string, object, Func<TObject, object, object>)

Registers the given parameterized property to the object.

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterProperty(string propertyName, object parameter, Func<TObject, object, object> ex)

Parameters

propertyName string

Property name

parameter object

Parameter for the lambda expression

ex Func<TObject, object, object>

Lambda expression

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

RegisterProperty<PropertyType>(string, Func<TObject, object>)

Registers the given property to the object

protected PropertySettings<ReadOnlyMacroObjectWrapper<TObject>> RegisterProperty<PropertyType>(string propertyName, Func<TObject, object> ex) where PropertyType : new()

Parameters

propertyName string

Property name

ex Func<TObject, object>

Lambda expression

Returns

PropertySettings<ReadOnlyMacroObjectWrapper<TObject>>

Type Parameters

PropertyType