Class DataSourceBase<T>

A base class for data sources.

Inheritance
object
DataSourceBase<T>
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBaseDataSourcesGeneric
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class DataSourceBase<T> : DataSourceBase, IDataSource<T>, IDataSource, IResource where T : class, IDataSourceValue
Type Parameters
NameDescription
T

The type.

Constructors

DataSourceBase(string, IDictionary<CultureInfo, string>, IList<T>)

Initializes a new instance of the DataSourceBase<T> class.

Declaration
RequestResponse
protected DataSourceBase(string name, IDictionary<CultureInfo, string> labels, IList<T> values)
Parameters
TypeNameDescription
stringname

The name of the data source.

IDictionary<, >CultureInfostringlabels

The labels for the data source.

IList<>values

The values for the data source.

DataSourceBase(string)

Initializes a new instance of the DataSourceBase<T> class.

Declaration
RequestResponse
protected DataSourceBase(string name)
Parameters
TypeNameDescription
stringname

The name of the data source.

Properties

Values

Gets the list of data source values.

Declaration
RequestResponse
public IList<T> Values { get; protected set; }
Property Value
TypeDescription
IList<>

Methods

GetDataSourceValues()

Gets a list of the data source values. Use the properties on IFlatDataSource or IHierarchicalDataSource. to make changes.

Declaration
RequestResponse
public override IList<IDataSourceValue> GetDataSourceValues()
Returns
TypeDescription
IList<>IDataSourceValue

The list of IDataSourceValue.

Overrides

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,