integrate Revit 2025 SDK

This commit is contained in:
Jeremy Tammik
2024-04-11 13:47:20 +02:00
parent e786953544
commit f414362f2b
889 changed files with 26676 additions and 26865 deletions
@@ -41,7 +41,7 @@ namespace SchemaWrapperTools
/// and also provides easy serialization of schema data to xml for the user.
/// </summary>
[Serializable]
public class SchemaWrapper
public class SchemaWrapper : IDisposable
{
#region Constructors and class Factories
/// <summary>
@@ -154,6 +154,28 @@ namespace SchemaWrapperTools
#endregion
#region IDisposable implementation
public void Dispose()
{
// Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (!disposing || isDisposed)
return;
(m_Schema as IDisposable)?.Dispose();
(m_SchemaBuilder as IDisposable)?.Dispose();
isDisposed = true;
}
#endregion
#region Active schema manipulation
/// <summary>
@@ -526,6 +548,9 @@ namespace SchemaWrapperTools
[NonSerialized]
private string m_xmlPath;
[NonSerialized]
private bool isDisposed;
#endregion
}