Table of Contents

Class DataContainer

Namespace
CMS.Base
Assembly
CMS.Base.dll

Case insensitive data container class.

public class DataContainer : IDataContainer, ISimpleDataContainer
Inheritance
object
DataContainer
Implements
Extension Methods

Properties

ColumnNames

Column names.

public List<string> ColumnNames { get; }

Property Value

List<string>

this[string]

Gets or sets the value of the column.

public object this[string columnName] { get; set; }

Parameters

columnName string

Column name

Property Value

object

Methods

ContainsColumn(string)

Returns true if the object contains specified column.

public bool ContainsColumn(string columnName)

Parameters

columnName string

Column name

Returns

bool

GetValue(string)

Returns value of column.

public object GetValue(string columnName)

Parameters

columnName string

Column name

Returns

object

SetValue(string, object)

Sets value of column.

public bool SetValue(string columnName, object value)

Parameters

columnName string

Column name

value object

Column value

Returns

bool

TryGetValue(string, out object)

Returns value of column.

public bool TryGetValue(string columnName, out object value)

Parameters

columnName string

Column name

value object

Returns the value

Returns

bool

Returns true if the operation was successful (the value was present)