mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 01:10:58 +00:00
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
|
@ -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