I have to update a value in the IEnumerable collection. Because it is read only, what is the trick to update the values?
product.Variants is an IEnumerable and I want to update something like this
product.Variants[0].Barcode ="something"
current I get an error like this
then I pass product variable to a function and that does some processing on product.Variants
someFunction (product) // this function should have the new barcode updated above.
