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:
parent
fcc775d658
commit
516fc1d9f0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue