mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 07:23:18 +02: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 New Issue
Block a user