Language

JavaObjectExtensions Class

Definition

Provides Java peer casts and legacy collection conversion helpers.

public static class JavaObjectExtensions
type JavaObjectExtensions = class
Inheritance
JavaObjectExtensions

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.

Methods

Name Description
JavaCast<TResult>(IJavaObject)

Reuses a compatible managed peer or obtains a wrapper of the requested type.

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.

Applies to