Kod Kütüphanem ama elime ne gelirse burada dursun diye…

İki List<> Karşılaştırılması

var difList = list1.Where(a => !list2.Any(a1 => a1.id == a.id))
            .Union(list2.Where(a => !list1.Any(a1 => a1.id == a.id)));

 

Kaynak : StackOverFlow

Related articles

DateTime format

class Program { public static void Main(string[] args) { DateTime thisDate = DateTime.Now; //Standard Time Formatting //Pattern 1: dd/MM/yyyy Console.WriteLine(“Pattern 1: Today is in dd/MM/yyyy format :” + thisDate.ToString(“dd/MM/yyyy”));//18/09/2016 //Pattern 2: dd-MM-yyyy Console.WriteLine(“Pattern 2: Today is in dd-MM-yyyy format :” + thisDate.ToString(“dd-MM-yyyy”));//18-09-2016 //Pattern 3: yyyy-MM-dd Console.WriteLine(“Pattern 3: Today is in yyyy-MM-dd format :” + thisDate.ToString(“yyyy-MM-dd”));//2016-09-18 […]

Learn More

String Join

string[] eleman = { “bir”, “iki”, “üç” }; string birlestir= string.Join(“;”, eleman); // birlestir = bir;iki;üç   Kaynak: DotNetPerls

Learn More

Tuple?

A tuple is a data structure that has a specific number and sequence of elements. A tuple allows you to combine multiple values of possibly different types into a single object without having to create a custom class. This can be useful if you want to write a method that for example returns three related […]

Learn More

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir