Skip to content

Making the QuantityInfoLookup public#1597

Merged
angularsen merged 4 commits into
angularsen:masterfrom
lipchev:quantity-info-lookup-made-public
Aug 9, 2025
Merged

Making the QuantityInfoLookup public#1597
angularsen merged 4 commits into
angularsen:masterfrom
lipchev:quantity-info-lookup-made-public

Conversation

@lipchev
Copy link
Copy Markdown
Collaborator

@lipchev lipchev commented Aug 3, 2025

  • making the QuantityInfoLookup type public
  • exposing the Quantities associated with a given UnitParser and UnitAbbreviationsCache
  • exposing the QuantityInfoLookup property of the UnitsNetSetup

- exposing the Quantities associated with a given UnitParser and UnitAbbreviationsCache
@lipchev
Copy link
Copy Markdown
Collaborator Author

lipchev commented Aug 3, 2025

@angularsen I don't see any reason to hold this one internal, but other than the utility functions it provides to the user, there isn't any particular requirement for it to be public.

Comment on lines -91 to -94
/// <remarks>
/// Access type is <c>internal</c> until this class is matured and ready for external use.
/// </remarks>
internal QuantityInfoLookup QuantityInfoLookup { get; }
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't got any burning need to rename this, but it would perhaps make it more consistent if we used Quantities as the property name.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes to consistency please, I renamed it

Comment on lines -91 to -94
/// <remarks>
/// Access type is <c>internal</c> until this class is matured and ready for external use.
/// </remarks>
internal QuantityInfoLookup QuantityInfoLookup { get; }
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes to consistency please, I renamed it

@angularsen angularsen merged commit 18dbc2f into angularsen:master Aug 9, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants