Mercurial > repos > snowblizz-super-API-ideas
diff API/FileLoadFailure.cs @ 382:6da9db4a9c23
Re #241: Use built-in .Net methods
* Switch to built-in methods (list on http://www.ironshay.com/post/Use-NET-Built-in-Methods-to-Save-Time-and-Headaches.aspx)
* Tidy up code and fix export issue (trying to download DTD)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 13 Aug 2011 10:45:06 +0000 |
parents | 3c4a6403a88c |
children |
line wrap: on
line diff
--- a/API/FileLoadFailure.cs Sun Aug 07 19:15:33 2011 +0000 +++ b/API/FileLoadFailure.cs Sat Aug 13 10:45:06 2011 +0000 @@ -99,7 +99,7 @@ { string fileName = FailedFile.FullName; string factoryType = (loadingFactory == null ? "" : loadingFactory.GetType().Name); - if (messageTranslationID == "" || messageTranslationID == null) + if (String.IsNullOrEmpty(messageTranslationID)) { message = String.Format(defaultMessage, fileName, factoryType); }