Add IsOSWindows

This commit is contained in:
2025-06-15 18:13:31 -04:00
parent 9151ba07f8
commit f0d483dab0

View File

@@ -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;