jeudi 14 janvier 2021

get max value and name from object properties in C#

(Coding in C#) Considering I have an Object with a list of properties like

Class Indicators
{
guid Id
double? Indocator1;
double? Indocator1;

.
.double? IndocatorP;
}

I would like to add a property that tells directly Indicator Name that have max value among all Indicator properties.

Is there any hint or advise?

Thanks.





Aucun commentaire:

Enregistrer un commentaire