mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-24 00:48:00 +08:00
21 lines
510 B
C#
21 lines
510 B
C#
|
using UnitsNet;
|
|||
|
|
|||
|
namespace Community.PowerToys.Run.Plugin.UnitConverter
|
|||
|
{
|
|||
|
public class UnitConversionResult
|
|||
|
{
|
|||
|
public double ConvertedValue { get; }
|
|||
|
|
|||
|
public string UnitName { get; }
|
|||
|
|
|||
|
public QuantityType QuantityType { get; }
|
|||
|
|
|||
|
public UnitConversionResult(double convertedValue, string unitName, QuantityType quantityType)
|
|||
|
{
|
|||
|
ConvertedValue = convertedValue;
|
|||
|
UnitName = unitName;
|
|||
|
QuantityType = quantityType;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|