Class StrategyParameterDictionary
- Namespace
- StockSharp.Algo.Strategies
- Assembly
- StockSharp.Algo.dll
IStrategyParam dictionary.
public class StrategyParameterDictionary : CachedSynchronizedDictionary<string, IStrategyParam>, ISynchronizedCollection<KeyValuePair<string, IStrategyParam>>, ISynchronizedCollection, IDictionary<string, IStrategyParam>, ICollection<KeyValuePair<string, IStrategyParam>>, IEnumerable<KeyValuePair<string, IStrategyParam>>, IEnumerable, IDisposable
- Inheritance
-
StrategyParameterDictionary
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the StrategyParameterDictionary.
Constructors
StrategyParameterDictionary(Strategy)
IStrategyParam dictionary.
public StrategyParameterDictionary(Strategy strategy)
Parameters
Remarks
Initializes a new instance of the StrategyParameterDictionary.
Properties
this[string]
Gets or sets the value associated with the specified key.
public override IStrategyParam this[string key] { get; }
Parameters
key
stringThe key of the value to get or set.
Property Value
- IStrategyParam
The value associated with the specified key.
Methods
Add(IStrategyParam)
Add parameter.
public void Add(IStrategyParam p)
Parameters
Add(string, IStrategyParam)
Adds the specified key and value to the dictionary.
public override void Add(string key, IStrategyParam value)
Parameters
key
stringThe key of the element to add.
value
IStrategyParamThe value of the element to add.
Clear()
Removes all keys and values from the dictionary.
public override void Clear()
Dispose()
public void Dispose()
Remove(IStrategyParam)
Remove parameter.
public bool Remove(IStrategyParam p)
Parameters
Returns
Remove(string)
Removes the value with the specified key from the dictionary.
public override bool Remove(string key)
Parameters
key
stringThe key of the element to remove.
Returns
- bool
true
if the element is successfully found and removed; otherwise,false
.
TryGetById(string, out IStrategyParam)
Try get parameter by the specified Id.
public bool TryGetById(string id, out IStrategyParam param)
Parameters
id
stringparam
IStrategyParamIStrategyParam or null if parameter not exist.