You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve recently started using the EngineeringUnits library and have been impressed with its capabilities. However, I’m facing a couple of challenges and would appreciate some guidance:
Listing Available Measurements and Units: Is there a recommended approach or built-in method for easily listing all the available measurements and their corresponding units? I would like to create a comprehensive list for a user interface, but I’m not sure of the most efficient way to achieve this.
Transforming Between Strings and Objects Without Using Reflection: I need to transform strings (representing measurement names or unit symbols) into the corresponding objects in EngineeringUnits, but I’d like to avoid using reflection for performance reasons. Do you have any suggestions or best practices for achieving this transformation efficiently?
Any advice or examples would be highly appreciated.
The text was updated successfully, but these errors were encountered:
//Got from database (Stored in two different cells)
double? value = 10;
string unit = "Meter";
//Put it back together
Length temp = value.AddUnit<LengthUnit>(unit);
However we dont (yet) have a way to turn fx "10 m/s" in a Speed-object.
If you could come with some examples/User stories of the behavior you want, it might not be that difficult to create
Hello,
I’ve recently started using the EngineeringUnits library and have been impressed with its capabilities. However, I’m facing a couple of challenges and would appreciate some guidance:
Any advice or examples would be highly appreciated.
The text was updated successfully, but these errors were encountered: