Table of Contents

Class FXMappingCollection

Namespace
Balsam.DataServers
Assembly
Balsam.Backtester.dll

A collection of FXMapping objects indexed by symbol.

public class FXMappingCollection : KeyedCollection<string, FXMapping>, IList<FXMapping>, ICollection<FXMapping>, IReadOnlyList<FXMapping>, IReadOnlyCollection<FXMapping>, IEnumerable<FXMapping>, IList, ICollection, IEnumerable
Inheritance
FXMappingCollection
Implements
Inherited Members
Extension Methods

Constructors

FXMappingCollection()

Instantiates an empty FXMappingCollection.

public FXMappingCollection()

FXMappingCollection(string)

Creates a new FXMappingCollection using the specified xml file.

public FXMappingCollection(string fileName)

Parameters

fileName string

Methods

Add(IEnumerable<FXMapping>)

Adds the specified enumerable of FXMappings to the collection.

public void Add(IEnumerable<FXMapping> mappings)

Parameters

mappings IEnumerable<FXMapping>

BuildMappings(string)

Attempts to build a mapping collection based on filenames.

public static FXMappingCollection BuildMappings(string directory)

Parameters

directory string

Returns

FXMappingCollection

GetKeyForItem(FXMapping)

Returns the symbol for use as a key.

protected override string GetKeyForItem(FXMapping item)

Parameters

item FXMapping

Returns

string

Load(string)

Loads the specified FX mapping xml file.

public static FXMappingCollection Load(string fileName)

Parameters

fileName string

Returns

FXMappingCollection

Save(string)

Saves the collection as xml to the specified file.

public void Save(string fileName)

Parameters

fileName string