Class VariableIndexer
Data object variables indexer
Inherited Members
Namespace: XData
Assembly: XData.docfx.dll
Syntax
public sealed class VariableIndexer
Constructors
| Improve this Doc View SourceVariableIndexer(IEnumerable<Variable>)
Variable indexer constructor
Declaration
public VariableIndexer(IEnumerable<Variable> variables)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Variable> | variables | Variables sequence |
Properties
| Improve this Doc View SourceCount
Variables count
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Item[String]
Variable indexer
Declaration
public object this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Variable name |
Property Value
| Type | Description |
|---|---|
| Object | Variable |
Methods
| Improve this Doc View SourceContains(String)
Variables contains name
Declaration
public bool Contains(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Variable name |
Returns
| Type | Description |
|---|---|
| Boolean | Contains flag |
Set(IEnumerable<Variable>)
Set variables values
Declaration
public VariableIndexer Set(IEnumerable<Variable> variables)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Variable> | variables | Variables sequence |
Returns
| Type | Description |
|---|---|
| VariableIndexer |
Set(String, String)
Set variable value
Declaration
public VariableIndexer Set(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Variable name |
| String | value | Variable value |
Returns
| Type | Description |
|---|---|
| VariableIndexer |
Set(Variable)
Set variable value
Declaration
public VariableIndexer Set(Variable variable)
Parameters
| Type | Name | Description |
|---|---|---|
| Variable | variable | Variable |
Returns
| Type | Description |
|---|---|
| VariableIndexer |
Set(VariableIndexer)
Set variables values
Declaration
public VariableIndexer Set(VariableIndexer variables)
Parameters
| Type | Name | Description |
|---|---|---|
| VariableIndexer | variables | Variable indexer |
Returns
| Type | Description |
|---|---|
| VariableIndexer |