namespace RGB.NET.Core; public interface IReferenceCounting { /// /// Gets the amount of currently registered referencing objects. /// public int ActiveReferenceCount { get; } /// /// Adds the given object to the list of referencing objects. /// /// The object to add. public void AddReferencingObject(object obj); /// /// Removes the given object from the list of referencing objects. /// /// The object to remove. public void RemoveReferencingObject(object obj); }