Share via


IJavaPeerable.Finalized Method

Definition

Called when the instance has been finalized.

public void Finalized ();
abstract member Finalized : unit -> unit

Remarks

The Finalized method is invoked after the finalizer has been invoked on the instance. The PeerReference property is NOT valid when Finalized is invoked.

[JniTypeSignature ("my/Example")]
partial class ExampleBinding : IJavaPeerable {

	~ExampleBinding ()
	{
        JniEnvironment.Runtime.ValueManager.TryCollectObject (this);
	}

	protected virtual void Dispose (bool disposing)
	{
	}

	void IJavaPeerable.Finalized ()
	{
	    Dispose (disposing: false);
	}
}

Applies to

See also