Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/OutOfSample
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23838/a2_Strategies/OutOfSample
Modified Files:
TestingPositions.cs
Log Message:
Fixed bug in HashCodeForTickerComposition
Index: TestingPositions.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/OutOfSample/TestingPositions.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestingPositions.cs 6 Feb 2008 23:05:49 -0000 1.1
--- TestingPositions.cs 22 Feb 2008 20:55:37 -0000 1.2
***************
*** 58,62 ****
listOfTickers.Sort();
foreach(string tickerCode in listOfTickers)
! this.hashCodeForTickerComposition += tickerCode;
}
return this.hashCodeForTickerComposition;
--- 58,62 ----
listOfTickers.Sort();
foreach(string tickerCode in listOfTickers)
! this.hashCodeForTickerComposition += tickerCode + ";";
}
return this.hashCodeForTickerComposition;
***************
*** 69,73 ****
}
! //it creates a empty TestingPositions
public TestingPositions()
{
--- 69,73 ----
}
! //it creates an empty TestingPositions
public TestingPositions()
{
|