Static ctor and finalizers. (deadlock on Parser ctor?)

Oct 9, 2013 at 10:50 AM
I think it would be beneficial to remove these unnecessary methods.

I was having a problem with static initialization failing (no exception just deadlock) when instancing Parser. I never got to the bottom of the issue, i presume it was something to do with type initialization and static ctor. I removed the static methods from Parser and recompiled a release build which solved the issue. If anyone would like to take a closer look at that?

The finalizer isn't necessary on classes that don't directly hold unmanaged resources. The GC takes care of the rest. Also the disposable(bool) pattern isn't necessary on sealed classes.