generator: leverage framework's String.IsNullOrEmpty() call

This makes the code a bit more readable and it is a
micro-optimization.
This commit is contained in:
Andrés G. Aragoneses 2013-10-21 17:13:31 +02:00
parent fcc775d658
commit 516fc1d9f0

View File

@ -87,7 +87,7 @@ namespace GtkSharp.Generation {
public string DefaultValue {
get {
if (default_value != null && default_value.Length > 0)
if (!String.IsNullOrEmpty (default_value))
return default_value;
if (IGen == null)
return String.Empty;