Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Linq .Except Extension - Translate to VB.NET

$
0
0

Hi.

Someone can help me to convert this extension for the except method to VB.NET. I've tried several online translators but all conversion are wrong.

Thanks in advance

publicstaticIEnumerable<T>Except<T,TKey>(thisIEnumerable<T> items,IEnumerable<T> other,Func<T,TKey> getKey){returnfrom item in items
                   join otherItem in other on getKey(item)
                   equals getKey(otherItem)into tempItemsfrom temp in tempItems.DefaultIfEmpty()whereReferenceEquals(null, temp)|| temp.Equals(default(T))select item;}

Viewing all articles
Browse latest Browse all 1764

Trending Articles