Class DataContainer
Case insensitive data container class.
public class DataContainer : IDataContainer, ISimpleDataContainer
- Inheritance
-
objectDataContainer
- 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
stringColumn name
Property Value
- object
Methods
ContainsColumn(string)
Returns true if the object contains specified column.
public bool ContainsColumn(string columnName)
Parameters
columnName
stringColumn name
Returns
- bool
GetValue(string)
Returns value of column.
public object GetValue(string columnName)
Parameters
columnName
stringColumn name
Returns
- object
SetValue(string, object)
Sets value of column.
public bool SetValue(string columnName, object value)
Parameters
columnName
stringColumn name
value
objectColumn value
Returns
- bool
TryGetValue(string, out object)
Returns value of column.
public bool TryGetValue(string columnName, out object value)
Parameters
columnName
stringColumn name
value
objectReturns the value
Returns
- bool
Returns true if the operation was successful (the value was present)