list operation in C# -


i have 2 lists

lista ={'a','b','c','d','e'}; listb ={'a','c','d','f'} 

i need listc lista , listb, such listc= {'b','e'}

is possible , how listc?

var lista = new list<char> { 'a', 'b', 'c', 'd', 'e' }; var listb = new list<char> { 'a', 'c', 'd', 'f' }; var listc = lista.except(listb).tolist(); // ^^ has 2 items; 'b' , 'c' 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -