mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-05-11 21:12:16 +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 {
|
public string DefaultValue {
|
||||||
get {
|
get {
|
||||||
if (default_value != null && default_value.Length > 0)
|
if (!String.IsNullOrEmpty (default_value))
|
||||||
return default_value;
|
return default_value;
|
||||||
if (IGen == null)
|
if (IGen == null)
|
||||||
return String.Empty;
|
return String.Empty;
|
||||||
|
|
Loading…
Reference in a new issue