mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-10-03 23:47:57 +00:00
integrate Revit 2025 SDK
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Revit.SDK.Samples.DoorSwing.CS
|
||||
/// The DoorGeometry object is used to transform Revit geometry data
|
||||
/// to appropriate format for GDI.
|
||||
/// </summary>
|
||||
public class DoorGeometry
|
||||
public class DoorGeometry : IDisposable
|
||||
{
|
||||
#region "Members"
|
||||
|
||||
@@ -312,6 +312,21 @@ namespace Revit.SDK.Samples.DoorSwing.CS
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
((IDisposable)m_options)?.Dispose();
|
||||
((IDisposable)m_bbox)?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(disposing: true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user