Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LibVLCSharp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Finkel
LibVLCSharp
Commits
6f64acfa
Commit
6f64acfa
authored
Jan 14, 2019
by
Martin Finkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docs] Internal
parent
f63ed56d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
LibVLCSharp/Shared/Internal.cs
LibVLCSharp/Shared/Internal.cs
+10
-0
No files found.
LibVLCSharp/Shared/Internal.cs
View file @
6f64acfa
...
...
@@ -22,6 +22,12 @@ namespace LibVLCSharp.Shared
/// </summary>
protected
bool
IsDisposed
;
/// <summary>
/// Base constructor for most libvlc objects. Will perform native calls.
/// </summary>
/// <param name="create">A create function that will return a pointer to the instance in native code</param>
/// <param name="release">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.</param>
protected
Internal
(
Func
<
IntPtr
>
create
,
Action
<
IntPtr
>
release
)
{
Release
=
release
;
...
...
@@ -40,6 +46,10 @@ namespace LibVLCSharp.Shared
Dispose
(
true
);
}
/// <summary>
/// Dispose of this instance
/// </summary>
/// <param name="disposing">true if called from a method</param>
protected
virtual
void
Dispose
(
bool
disposing
)
{
if
(
IsDisposed
||
NativeReference
==
IntPtr
.
Zero
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment