Changes for MGSHBacktest model.
Code cleanup.
This commit is contained in:
@@ -231,6 +231,7 @@ namespace MarketData.Utils
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
public static String GetPath(String strPathFileName)
|
||||
{
|
||||
int index=strPathFileName.LastIndexOf('\\');
|
||||
@@ -238,6 +239,15 @@ namespace MarketData.Utils
|
||||
String strPath = strPathFileName.Substring(0, index);
|
||||
return strPath;
|
||||
}
|
||||
|
||||
public static String GetFileNameNoExtension(String pathFileName)
|
||||
{
|
||||
if(null==pathFileName)return null;
|
||||
pathFileName = Path.GetFileName(pathFileName);
|
||||
pathFileName=Utility.BetweenString(pathFileName,null,".");
|
||||
return pathFileName;
|
||||
}
|
||||
|
||||
public static String KeepBefore(String strItem,String strKeepBefore)
|
||||
{
|
||||
int startPos=strItem.IndexOf(strKeepBefore);
|
||||
|
||||
Reference in New Issue
Block a user