Part of my answer is the response, another part is just a interesting point:
I often want to see the variable as a prop/field
. So a create a extension method
to solve my problem:
Tensao is just an Enum that have a value related.
public static class TensaoExtensions {
public static double TensaoNominal(this Tensao tensao) {
return Math.Round((double.Parse(EnumMapper.Convert(typeof(Tensao),
tensao.ToString()))) * 1000 / Math.Sqrt(3), 3);
}
}