Language

JavaObjectExtensions.ToInteroperableCollection Method

Definition

Overloads

Name Description
ToInteroperableCollection(ICollection)
Obsolete.

Reuses an existing JavaCollection or creates one from the supplied collection.

ToInteroperableCollection(IDictionary)
Obsolete.

Reuses an existing JavaDictionary or creates one from the supplied dictionary.

ToInteroperableCollection(IList)
Obsolete.

Reuses an existing JavaList or creates one from the supplied list.

ToInteroperableCollection<K,V>(IDictionary<K,V>)
Obsolete.

Reuses an existing typed JavaDictionary or creates one from the supplied dictionary.

ToInteroperableCollection<T>(ICollection<T>)
Obsolete.

Reuses an existing typed JavaCollection or creates one from the supplied collection.

ToInteroperableCollection<T>(IList<T>)
Obsolete.

Reuses an existing typed JavaList or creates one from the supplied list.

ToInteroperableCollection(ICollection)

Caution

Use Android.Runtime.JavaCollection.ToLocalJniHandle()

Reuses an existing JavaCollection or creates one from the supplied collection.

[System.Obsolete("Use Android.Runtime.JavaCollection.ToLocalJniHandle()")]
public static Android.Runtime.JavaCollection ToInteroperableCollection(this System.Collections.ICollection instance);
[<System.Obsolete("Use Android.Runtime.JavaCollection.ToLocalJniHandle()")>]
static member ToInteroperableCollection : System.Collections.ICollection -> Android.Runtime.JavaCollection

Parameters

instance
ICollection

The managed collection to expose through a Java collection wrapper.

Returns

The existing compatible wrapper or the newly created JavaCollection.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToInteroperableCollection(IDictionary)

Caution

Use Android.Runtime.JavaDictionary.ToLocalJniHandle()

Reuses an existing JavaDictionary or creates one from the supplied dictionary.

[System.Obsolete("Use Android.Runtime.JavaDictionary.ToLocalJniHandle()")]
public static Android.Runtime.JavaDictionary ToInteroperableCollection(this System.Collections.IDictionary instance);
[<System.Obsolete("Use Android.Runtime.JavaDictionary.ToLocalJniHandle()")>]
static member ToInteroperableCollection : System.Collections.IDictionary -> Android.Runtime.JavaDictionary

Parameters

instance
IDictionary

The managed dictionary to expose through a Java dictionary wrapper.

Returns

The existing compatible wrapper or the newly created JavaDictionary.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToInteroperableCollection(IList)

Caution

Use Android.Runtime.JavaList.ToLocalJniHandle()

Reuses an existing JavaList or creates one from the supplied list.

[System.Obsolete("Use Android.Runtime.JavaList.ToLocalJniHandle()")]
public static Android.Runtime.JavaList ToInteroperableCollection(this System.Collections.IList instance);
[<System.Obsolete("Use Android.Runtime.JavaList.ToLocalJniHandle()")>]
static member ToInteroperableCollection : System.Collections.IList -> Android.Runtime.JavaList

Parameters

instance
IList

The managed list to expose through a Java list wrapper.

Returns

The existing compatible wrapper or the newly created JavaList.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToInteroperableCollection<K,V>(IDictionary<K,V>)

Caution

Use Android.Runtime.JavaDictionary<K, V>.ToLocalJniHandle()

Reuses an existing typed JavaDictionary or creates one from the supplied dictionary.

[System.Obsolete("Use Android.Runtime.JavaDictionary<K, V>.ToLocalJniHandle()")]
public static Android.Runtime.JavaDictionary<K,V> ToInteroperableCollection<K,V>(this System.Collections.Generic.IDictionary<K,V> instance);
[<System.Obsolete("Use Android.Runtime.JavaDictionary<K, V>.ToLocalJniHandle()")>]
static member ToInteroperableCollection : System.Collections.Generic.IDictionary<'K, 'V> -> Android.Runtime.JavaDictionary<'K, 'V>

Type Parameters

K

The managed dictionary key type.

V

The managed dictionary value type.

Parameters

instance
IDictionary<K,V>

The typed dictionary to expose through a Java dictionary wrapper.

Returns

The existing compatible wrapper or the newly created typed JavaDictionary.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToInteroperableCollection<T>(ICollection<T>)

Caution

Use Android.Runtime.JavaCollection<T>.ToLocalJniHandle()

Reuses an existing typed JavaCollection or creates one from the supplied collection.

[System.Obsolete("Use Android.Runtime.JavaCollection<T>.ToLocalJniHandle()")]
public static Android.Runtime.JavaCollection<T> ToInteroperableCollection<T>(this System.Collections.Generic.ICollection<T> instance);
[<System.Obsolete("Use Android.Runtime.JavaCollection<T>.ToLocalJniHandle()")>]
static member ToInteroperableCollection : System.Collections.Generic.ICollection<'T> -> Android.Runtime.JavaCollection<'T>

Type Parameters

T

The managed collection element type.

Parameters

instance
ICollection<T>

The typed collection to expose through a Java collection wrapper.

Returns

The existing compatible wrapper or the newly created typed JavaCollection.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToInteroperableCollection<T>(IList<T>)

Caution

Use Android.Runtime.JavaList<T>.ToLocalJniHandle()

Reuses an existing typed JavaList or creates one from the supplied list.

[System.Obsolete("Use Android.Runtime.JavaList<T>.ToLocalJniHandle()")]
public static Android.Runtime.JavaList<T> ToInteroperableCollection<T>(this System.Collections.Generic.IList<T> instance);
[<System.Obsolete("Use Android.Runtime.JavaList<T>.ToLocalJniHandle()")>]
static member ToInteroperableCollection : System.Collections.Generic.IList<'T> -> Android.Runtime.JavaList<'T>

Type Parameters

T

The managed list element type.

Parameters

instance
IList<T>

The typed list to expose through a Java list wrapper.

Returns

The existing compatible wrapper or the newly created typed JavaList.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to