Remove the ">" character to start with:
customer.Gold.SecondAmount = CustomerDetails ... == ">Gold");
^
|
Then change "
key
" to "
Key
" to match your class definition - C# is case sensitive, so they are not the same field name!.
You can also remove the
ToString
call since the
Key
field is already a string.
Then think about what the
Where
call will return.
Is it a single item? Or a collection of items?
And since the
customer
class doesn't have any static members, you would need an instance of the class to assign to, and a
Gold
field or property to work with!