Replies: 2 comments 3 replies
-
Hi, take a look at Did that help? |
Beta Was this translation helpful? Give feedback.
1 reply
-
This seems to do something similar to what you're looking for: Quantity
.Infos
.SelectMany(qi => qi.UnitInfos.Select(ui => new
{
QuantityName = qi.Name,
UnitName = ui.Name,
Abbreviations = string.Join("|", UnitAbbreviationsCache.Default.GetUnitAbbreviations(ui.Value.GetType(), Convert.ToInt32(ui.Value)))
})
)
.GroupBy(x => x.QuantityName) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to create a list of the above-mentioned items as a list.
something like
{
Type:"Preassure",
Units:[
{UnitName: "pascal" , Abb: "Pa"}
{UnitName: "Atmosphere" , Abb: "ATM"}
]
}
can anyone give me a suggestion on how to get this list dynamically on runtime?
Beta Was this translation helpful? Give feedback.
All reactions