Skip to content
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

ElectricResistanceUnit do work no more #1315

Open
BernhardJosef opened this issue Sep 13, 2023 · 1 comment
Open

ElectricResistanceUnit do work no more #1315

BernhardJosef opened this issue Sep 13, 2023 · 1 comment
Labels

Comments

@BernhardJosef
Copy link

Describe the bug
The Unit 'Ohm' is now unknown.

To Reproduce
Enum unitOhm = UnitParser.Default.Parse("Ohm", typeof(ElectricResistanceUnit));

Expected behavior
Support of ElectricResistanceUnit from mOhm to TOhm.

Screenshots
UnitsNet.UnitNotFoundException: "Unit not found with abbreviation [Ohm] for unit type [UnitsNet.Units.ElectricResistanceUnit].".

Additional context

@angularsen
Copy link
Owner

Did this ever work? In what version?

The abbreviation is defined as Ω in JSON.
https://github.com/angularsen/UnitsNet/blob/master/Common/UnitDefinitions/ElectricResistance.json#L11-L22

// Throws
// UnitParser.Default.Parse("Ohm", typeof(ElectricResistanceUnit))

// OK
UnitParser.Default.Parse("Ω", typeof(ElectricResistanceUnit))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants