If I understand correctly, what you are describing would often be done with a using scope block in C#.
EX
using (SomeKindOfHandle handle) {
// handle releases when the scope ends
}
EX
using (SomeKindOfHandle handle) {
// handle releases when the scope ends
}
No comments yet.