[Quantproject-developers] QuantProject/b4_Business/a2_Strategies/Eligibles EligibleTickers.cs, 1.1
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2008-02-06 23:02:07
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/Eligibles In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25708/a2_Strategies/Eligibles Modified Files: EligibleTickers.cs Log Message: Added Tickers property, for getting an array of string containing the eligible tickers Index: EligibleTickers.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/Eligibles/EligibleTickers.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EligibleTickers.cs 19 Jan 2008 17:40:15 -0000 1.1 --- EligibleTickers.cs 6 Feb 2008 23:01:28 -0000 1.2 *************** *** 31,34 **** --- 31,49 ---- public class EligibleTickers : System.Collections.CollectionBase { + private string[] tickers; + public string[] Tickers + { + get + { + if(this.tickers == null) + { + this.tickers = new string[this.Count]; + for(int i = 0;i<this.Count; i++) + this.tickers[i] = this[i]; + } + return this.tickers; + } + } + /// <summary> /// *************** *** 56,60 **** this.checkParameter( dataRow ); this.addTicker_actually( (string)dataRow[ 0 ] ); ! } private void addTickers( DataTable dtTickers ) { foreach ( DataRow dataRow in dtTickers.Rows ) --- 71,76 ---- this.checkParameter( dataRow ); this.addTicker_actually( (string)dataRow[ 0 ] ); ! } ! private void addTickers( DataTable dtTickers ) { foreach ( DataRow dataRow in dtTickers.Rows ) |