Files
lserp_cs_5.0/插件库/Cef3.24/Classes.g/CefCommandLine.g.cs
T
2026-07-10 15:25:05 +08:00

75 lines
1.7 KiB
C#

//
// DO NOT MODIFY! THIS IS AUTOGENERATED FILE!
//
namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cef3.Interop;
// Role: PROXY
public sealed unsafe partial class CefCommandLine : IDisposable
{
internal static CefCommandLine FromNative(cef_command_line_t* ptr)
{
return new CefCommandLine(ptr);
}
internal static CefCommandLine FromNativeOrNull(cef_command_line_t* ptr)
{
if (ptr == null) return null;
return new CefCommandLine(ptr);
}
private cef_command_line_t* _self;
private CefCommandLine(cef_command_line_t* ptr)
{
if (ptr == null) throw new ArgumentNullException("ptr");
_self = ptr;
}
~CefCommandLine()
{
if (_self != null)
{
Release();
_self = null;
}
}
public void Dispose()
{
if (_self != null)
{
Release();
_self = null;
}
GC.SuppressFinalize(this);
}
internal void AddRef()
{
cef_command_line_t.add_ref(_self);
}
internal bool Release()
{
return cef_command_line_t.release(_self) != 0;
}
internal bool HasOneRef
{
get { return cef_command_line_t.has_one_ref(_self) != 0; }
}
internal cef_command_line_t* ToNative()
{
AddRef();
return _self;
}
}
}