Class Internal
- Namespace
- LibVLCSharp.Shared
- Assembly
- LibVLCSharp.dll
This base class is used for the main libvlc types
public abstract class Internal : IDisposable
- Inheritance
-
Internal
- Implements
- Derived
- Inherited Members
Constructors
Internal(Func<nint>, Action<nint>)
Base constructor for most libvlc objects. Will perform native calls.
protected Internal(Func<nint> create, Action<nint> release)
Parameters
createFunc<nint>A create function that will return a pointer to the instance in native code
releaseAction<nint>A release Action that takes the native pointer to that C# instance's native code representation and performs the release call in native code. It will be called once when the C# instance gets disposed.
Fields
IsDisposed
Indicates whether this object has already been disposed
protected bool IsDisposed
Field Value
Release
Release native resources by calling this C function
protected readonly Action<nint> Release
Field Value
Properties
NativeReference
The pointer to the native code representation of this object
public nint NativeReference { get; }
Property Value
Methods
Dispose()
Dispose of this instance
public void Dispose()
Dispose(bool)
Dispose of this instance
protected virtual void Dispose(bool disposing)
Parameters
disposingbooltrue if called from a method