Link to home
Create AccountLog in
Avatar of tmajor99
tmajor99

asked on

C# cannot explicity convert type

I have two list arrays and want to filter the results from one Array to another but I get a syntax error "cannot explicity convert type '...filtervaluesofattribure' to 'Systems.Collections.Generic.List...' .  How do I do this?  Is it possible to just filter the results back to the same LIST Array?

GetAllConvertedValue = FilteredProducts.Where(i => i.value1 == li.Text).FirstOrDefault();

List<FilteredValuesOfAttribure> GetAllConvertedValue = new List<FilteredValuesOfAttribure>();
List<FilteredValuesOfAttribure> FilteredValueOfProduct = new List<FilteredValuesOfAttribure>();
ASKER CERTIFIED SOLUTION
Avatar of Franck Gaspoz
Franck Gaspoz
Flag of France image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account