Class
DescriptorValueStore

Object that can persist a list of values captured at a certain point in time for a descriptor

Definition

Namespace:ArtOfTest.Common.Design.Extensibility

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class DescriptorValueStore

Inheritance: objectDescriptorValueStore

Constructors

DescriptorValueStore()

Create a new store

Declaration

cs-api-definition
public DescriptorValueStore()

DescriptorValueStore(DescriptorValueStore)

Create a new store, copying the contents of an existing one

Declaration

cs-api-definition
public DescriptorValueStore(DescriptorValueStore toCopy)

Parameters

toCopy

DescriptorValueStore

The store to make a copy of. References to object values in the source store are copied into the new store, so the two stores are not decoupled.

Properties

Count

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

this[string]

Declaration

cs-api-definition
public object this[string propertyName] { get; }

Parameters

propertyName

string

Property Value

object

Methods

Add(string, object)

Declaration

cs-api-definition
public void Add(string propertyName, object value)

Parameters

propertyName

string

value

object

AddPairs(params object[])

Add pairs to the store. This can be used to add bulk items

Declaration

cs-api-definition
public void AddPairs(params object[] nameValuePairs)

Parameters

nameValuePairs

object[]

A list of name value pairs

Clear()

Declaration

cs-api-definition
public void Clear()

ContainsProperty(string)

Declaration

cs-api-definition
public bool ContainsProperty(string propertyName)

Parameters

propertyName

string

Returns

bool

GetValue<T>(string)

Declaration

cs-api-definition
public T GetValue<T>(string propertyName)

Parameters

propertyName

string

Returns

T