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.



Read more here: https://stackoverflow.com/questions/65721369/get-max-value-and-name-from-object-properties-in-c-sharp

Content Attribution

This content was originally published by Skander at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: