how to check if a decimal value exists in a list of decimal C#.
I want to achieve the following, but I am looking for right way to compare a decimal value from a list of decimals.
decimal value = 100;
List<decimal > Amounts = new List<decimal>() { 20, 30 };
I want to compare if
Amounts.Any(value)
//do something
else
do something