c# - Is the order of an except and intersect operation always ignorable? -


This is a type of action for me like

  var list = new list & Lt; Int & gt; (); // list Add some element ... list. (Other listings).  

Is it always the same:

  list   

I get 100% Not sure

Thank you for your help.

Order from fully set-theoretical perspective does not matter here, The elements are removed from the code> list , an element is removed from the list, if it is in anotherList or not in yet The other list is in . Whether you make Opend of the Ondands »or« does not matter in the last sentence.

For example, let's create three lists (set here, because these are set operations):

  list = {A, B, C, D} AnotherList = {A, B, E, F} is yet another list = {A, C, E, G}  

There is an element on each set that will be all three sets ( A ), an element that is in the second set, and an element that is in the set but not in the other, therefore we have all possible cases for the intersection and set the difference here.

list.Except (anotherList) yields {C, D} . So far other listings yield {C} .

list.Intersect (yet other listings) yield {A, C} anotherList except for the yield {C} again


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -