Show / Hide Table of Contents

Class AN_LinkedObject

The class holds link to the native object create on java side.

When you done using the object, it's important to call Dispose() method. Otherwise Object on java native side will remain with strong link, and will not be collected by GC.

Inheritance
System.Object
AN_LinkedObject
AN_JavaObject
Namespace: SA.Android.Utilities
Assembly: cs.temp.dll.dll
Syntax
public class AN_LinkedObject : IDisposable

Constructors

AN_LinkedObject()

Declaration
public AN_LinkedObject()

AN_LinkedObject(Int32)

Declaration
public AN_LinkedObject(int hasCode)
Parameters
Type Name Description
System.Int32 hasCode

Fields

k_NullObjectHash

Declaration
public const int k_NullObjectHash = -1
Field Value
Type Description
System.Int32

m_HashCode

Declaration
protected int m_HashCode
Field Value
Type Description
System.Int32

Properties

HashCode

The object hash code, matched with java object hash on native side.

Declaration
public int HashCode { get; }
Property Value
Type Description
System.Int32

IsNull

Returns true in case native object is null.

Declaration
public bool IsNull { get; }
Property Value
Type Description
System.Boolean

Methods

Dispose()

Will free native object hard link.

Declaration
public void Dispose()
In This Article
Back to top Generated by DocFX