Horje
c# how to check if two lists have same values Code Example
c# how to check if two lists have same values
var list1 = new List<int> { 1, 2, 3, 1 };
var list2 = new List<int> { 2, 1, 3, 1 };
var list3 = new List<int> { 2, 2, 3, 2 };
bool areTheSame1 = list1.SequenceEqualsIgnoreOrder(list2); //True
bool areTheSame2 = list1.SequenceEqual(list2); //True
bool areTheSame3 = list1.SequenceEqual(list3); //False




Csharp

Related
string format comma c# Code Example string format comma c# Code Example
the really long string variable is a string in which a very long string is stored Code Example the really long string variable is a string in which a very long string is stored Code Example
how to display doubles with trailing zeros in c# Code Example how to display doubles with trailing zeros in c# Code Example
gcd of number Code Example gcd of number Code Example
How can you learn C# on your own Code Example How can you learn C# on your own Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11