Udostępnij za pośrednictwem


IMapView<K,V>.Split(IMapView<K,V>, IMapView<K,V>) Method

Definition

Splits the map view into two views.

public:
 void Split([Out] IMapView<K, V> ^ & first, [Out] IMapView<K, V> ^ & second);
void Split([Out] IMapView<K, V> const& & first, [Out] IMapView<K, V> const& & second);
public void Split(out IReadOnlyDictionary<K,V> first, out IReadOnlyDictionary<K,V> second);
Public Sub Split (ByRef first As IReadOnlyDictionary(Of K, V), ByRef second As IReadOnlyDictionary(Of K, V))

Parameters

first
IMapView<K,V>

IReadOnlyDictionary<K,V>

One half of the original map.

second
IMapView<K,V>

IReadOnlyDictionary<K,V>

The second half of the original map.

Remarks

When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IReadOnlyDictionary<TKey,TValue> interface.

The two views that result from the split operation may not contain the same number of items. The two views do not overlap.

If the IMapView<K, V> instance cannot be split, then both the first and second parameters are null when the method returns.

Applies to

See also