Refactorings.
This commit is contained in:
@@ -81,6 +81,19 @@ namespace MarketDataLib.Utility
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static List<String> FlattenSection(List<String> section)
|
||||
{
|
||||
List<String> flattened = new List<String>();
|
||||
|
||||
foreach(String item in section)
|
||||
{
|
||||
if("".Equals(item))continue;
|
||||
flattened.Add(item);
|
||||
}
|
||||
return flattened;
|
||||
}
|
||||
|
||||
public static bool FindInSections(List<String> sections,String startsWith,int startingIndex,ref int indexOfItem,bool findExact=true)
|
||||
{
|
||||
for(int index=startingIndex;index<sections.Count;index++)
|
||||
|
||||
Reference in New Issue
Block a user