HashSet<T>.IntersectWith(IEnumerable<T>) Yöntem

Tanım

Geçerli HashSet<T> nesneyi yalnızca o nesnede ve belirtilen koleksiyonda bulunan öğeleri içerecek şekilde değiştirir.

public:
 virtual void IntersectWith(System::Collections::Generic::IEnumerable<T> ^ other);
public:
 void IntersectWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);
[System.Security.SecurityCritical]
public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);
abstract member IntersectWith : seq<'T> -> unit
override this.IntersectWith : seq<'T> -> unit
[<System.Security.SecurityCritical>]
member this.IntersectWith : seq<'T> -> unit
[<System.Security.SecurityCritical>]
abstract member IntersectWith : seq<'T> -> unit
override this.IntersectWith : seq<'T> -> unit
Public Sub IntersectWith (other As IEnumerable(Of T))

Parametreler

other
IEnumerable<T>

Geçerli HashSet<T> nesneyle karşılaştıracak koleksiyon.

Uygulamalar

Öznitelikler

Özel durumlar

other, null değeridir.

Açıklamalar

parametresiyle other temsil edilen koleksiyon geçerli HashSet<T> nesneyle aynı eşitlik karşılaştırıcıya sahip bir HashSet<T> koleksiyonsa, bu yöntem bir O(n) işlemidir. Aksi takdirde, bu yöntem bir O(n + m) işlemidirCount; burada n ve m içindeki otheröğelerin sayısıdır.

Şunlara uygulanır