I have a getvalue object that contains a price list which consists of 5 items. I need to get the value of one of the elements. I can get the value by index:
getvalue
You can either change your array to Dictionary or use LINQ to perform linear search for your object by name:
Dictionary
return getValue1.ValuationPrices.First(x => x.Name == "myName").Value.ToString();