Share via


BaseWrapper Class

Definition

Base class used by the bindinge generator to generate Protocol Wrapper Types.

public abstract class BaseWrapper : CoreFoundation.NativeObject
type BaseWrapper = class
    inherit NativeObject
Inheritance

Remarks

This class is intended to support the binding generator, and contains some of the common idioms and patterns used for implementing a managed object that wraps an unmanaged Objective-C object.

The class provides a constructor that take a native handle, and a flag indicating whether the underlying object has already been retained by managed code or not as well as implementing the IDisposable interface which will invoke the Objective-C release method on the target when the object is no longer referenced by managed code.

Constructors

Name Description
BaseWrapper(NativeHandle, Boolean)

Properties

Name Description
Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release()
Retain()

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to