DefaultPriceIndexFactoryloadPriceIndices Method

Adds price index data provided by a TextReader to this DefaultPriceIndexFactory.

Definition

Namespace: com.ftlabs.fisa
Assembly: FISA.NET (in FISA.NET.dll) Version: 1.16.0.13 (1.16.0.13)
C#
public void loadPriceIndices(
	TextReader textReader
)

Parameters

textReader  TextReader
A TextReader that provides the price index data.

Remarks

The dates provided by the TextReader must be in a format of "M/yyyy". The price index values must be parsable as a double. Each date and value should be separated with an equal sign where the date is the key. Each date/value pair should be delimited with a carriage return and/or a linefeed. The order of the date/value pairs doesn't matter, however if there is a duplicate date, the price index value of the last occurrance will be the value returned for that date.

Example

Sample file layout :
C#
03/2005 = 120.5
04/2005 = 121.0
05/2005 = 121.5

See Also