[Tizen.NUI.Binding.TypeConverter(typeof(SizeTypeConverter))]
public class Size : Disposable
{
- /// <summary>swigCMemOwn.</summary>
- /// <since_tizen> 5 </since_tizen>
- protected bool swigCMemOwn;
-
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
/// The constructor.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- internal Size(global::System.IntPtr cPtr, bool cMemoryOwn)
+ internal Size(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}
- /// <summary>
- /// Dispose.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- protected override void Dispose(DisposeTypes type)
+ /// This will not be public opened.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
{
- if (disposed)
- {
- return;
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- Interop.Vector3.delete_Vector3(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- base.Dispose(type);
+ Interop.Vector3.delete_Vector3(swigCPtr);
}
private Size Add(Size rhs)