comparison API/Objects/WarFoundryObject.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
comparison
equal deleted inserted replaced
381:30db6669f5cd 382:6da9db4a9c23
74 } 74 }
75 } 75 }
76 76
77 public bool HasDefaultName() 77 public bool HasDefaultName()
78 { 78 {
79 return (name == null || name == ""); 79 return String.IsNullOrEmpty(name);
80 } 80 }
81 81
82 protected void OnNameChanged(string oldValue, string newValue) 82 protected void OnNameChanged(string oldValue, string newValue)
83 { 83 {
84 if (NameChanged!=null) 84 if (NameChanged!=null)