-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Everything returns 0 with ByteSize.Parse or ByteSize.TryParse #17
Comments
Thanks for filing the issue. What culture/locale are you running in? |
That seems to be the problem Omar, My locale is '{nl-NL}' If i set it manually, on the thread, to en-US like below it works just fine: It should be working for {nl-NL} too, right? |
Yes, it should work in The My parallels isn't working (I'm on a Mac). I need to figure out how to get ByteSize setup for dotnet core and then I can fix this. |
@erwinkramer, I just released v1.2.1 on NuGet with the fix. Thanks for reporting this. |
@omar Thanks! |
Installed the latest version from NuGet. Using Visual Studio 2015 targeting .NET 4.5 and made this code:
All 3 variables (m,n,o) result in 0. Not sure what's the matter here.
The following example does work as intended:
var monthlyUsage = ByteSize.FromGigaBytes(10);
The text was updated successfully, but these errors were encountered: