Add IsOSWindows
This commit is contained in:
@@ -185,6 +185,11 @@ namespace MarketData.Utils
|
||||
return Utility.ListToString(attributesList);
|
||||
}
|
||||
|
||||
public static bool IsOSWindows()
|
||||
{
|
||||
return Environment.OSVersion.Platform.Equals(PlatformID.Win32NT);
|
||||
}
|
||||
|
||||
public static String Pad(string str, char filler, int length)
|
||||
{
|
||||
int stringLength = str.Length;
|
||||
@@ -193,7 +198,7 @@ namespace MarketData.Utils
|
||||
|
||||
while (stringLength < length)
|
||||
{
|
||||
sb.Append(filler);
|
||||
sb.Append(filler);
|
||||
stringLength++;
|
||||
}
|
||||
return sb.ToString() + str;
|
||||
|
||||
Reference in New Issue
Block a user