Alois Kraus


  Home  |   Contact  |   Syndication    |   Login
  133 Posts | 8 Stories | 368 Comments | 162 Trackbacks



Post Categories

Image Galleries


May 2010 Entries

I had to remove some file headers in a bigger project which were all of the form #region File Header /*[ Compilation unit ---------------------------... Name : Class1.cs Language : C# Creation Date : Description : ---------------------------... /*] END */ #endregion I know that would be a cool thing to write a simple C# program use a recursive file search, read all lines skip the first n lines and write the files back to ......

I do quite a bit of debugging .NET applications but from time to time I see things that are impossible (at a first look). I may ask you dear reader what your mental exception handling model is. Exception handling is easy after all right? Lets suppose the following code: private void F1(object sender, EventArgs e) { try { F2(); } catch (Exception ex) { throw new Exception("even worse Exception"); } } private void F2() { try { F3(); } finally { throw new Exception("other exception"); } } private void ......