Java.Lang.IAutoCloseable
Defines an interface for classes that can (or need to) be closed once they are not used any longer.

See Also: IAutoCloseable Members

Syntax

[Android.Runtime.Register("java/lang/AutoCloseable", "", "Java.Lang.IAutoCloseableInvoker")]
public interface IAutoCloseable : Android.Runtime.IJavaObject, IDisposable

Remarks

Defines an interface for classes that can (or need to) be closed once they are not used any longer. Calling the close method releases resources that the object holds.

A common pattern for using an AutoCloseable resource:

java Example

Closable foo = new Foo();
   try {
      ...;
    finally {
      foo.close();
   }
 }

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0