blog.jj5.net (2003 to 2005)

On style and refactoring..

Tue Sep 28 18:49:00 UTC+1000 2004

Categories:

I just changed this code:

      if (File.Exists(outFile)) {

        if (!this.AllowOverwrite) {

          return; // not allowed to update
       
        }
      }

To this:

      if ( File.Exists( outFile ) && ! this.IsOverwriteAllowed ) { return; }

Thought I'd share my mad technique ( and general awesomeness ) with The Internet.


Copyright © 2003-2005 John Elliot