Hi everyone,

In the past, I've always left the generated #region part of a vb.net app, but I've just realised it's a good way of grouping functions which I want to hide.

I've got the following code in several of my classes - 2 or 3 procedures which would be to hide / collapse & move out of the way at once.

As I can't find diddly squat on custom #regions on the net, I want to ask if this is good practice or not? will the GC read the procedures ok if their held within a custom region? Thanks!

VB Code:
  1. #Region "CleanupCode"
  2.     Public Overloads Sub Dispose()Implements IDisposable.Dispose
  3.         'Some Code Here
  4.     End Sub
  5.  
  6.     Protected Overrides Sub Finalize()
  7.         'More Code Here
  8.     End Sub
  9. #End region