JVMBridge |
class TheClass : JVMBridgeCore<TheClass> { public override string BridgeClassName => "org.company.TheClass"; public TheClass() { } } var cls = new TheClass(); System.GC.SuppressFinalize(cls); try { // use cls } finally { System.GC.ReRegisterForFinalize(cls); }
The JVMBridgeCoreDisposable type exposes the following members.
| Name | Description | |
|---|---|---|
| Create | Returns an instance of JVMBridgeCoreDisposable managing classToDispose | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Finalize the JVMBridgeCoreDisposable instance
(Overrides ObjectFinalize) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| (JVMBridgeCore to JVMBridgeCoreDisposable) | Implicitly converts a JVMBridgeCore instance into a JVMBridgeCoreDisposable instance |
| Name | Description | |
|---|---|---|
| ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions) | |
| ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions) |
class TheClass : JVMBridgeCore<TheClass> { public override string BridgeClassName => "org.company.TheClass"; public TheClass() { } } var cls = new TheClass(); using var disposable = JVMBridgeCoreDisposable.Create(cls);