© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
2 replies
hugeman

Is there a name for this type of code/system?

I couldn't think of a better title, but the system I'm talking about is IntelliJ IDEA's Disposer system (I imagine Rider uses it too).
If you don't know what it is, it has a central manager class that manages a tree of disposable object, and when you dispose of an object, it first disposes all children before finally disposing the object itself. The disposable objects themselves don't actually store any child disposable objects; the manager class stores it in that tree (application wide), so it's very easy to use and implement new disposable objects.

I really want to look up more info about systems similar to this like some sort of "deferred node tree", but I don't know where to begin researching it
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ what is the name of such a system?
C#CC# / help
3y ago
❔ is there a tool for code statistics?
C#CC# / help
4y ago
code generator: Exception type "System.InvalidOperationException"
C#CC# / help
2y ago
❔ Is there a way to improve this code Performance ?
C#CC# / help
4y ago