IsNullOrEmpty
This commit is contained in:
parent
dde887f1d1
commit
959a419f82
@ -28,7 +28,7 @@ public class DtsodV23 : DtsodDict<string, dynamic>, IDtsod
|
||||
while (i < text.Length)
|
||||
{
|
||||
string name = ReadName();
|
||||
if (name == "") goto end;
|
||||
if (name.IsNullOrEmpty()) goto end;
|
||||
dynamic value = ReadValue(out bool _);
|
||||
if (partOfDollarList)
|
||||
{
|
||||
@ -250,7 +250,6 @@ public class DtsodV23 : DtsodDict<string, dynamic>, IDtsod
|
||||
case '[':
|
||||
value=ReadList();
|
||||
goto case ';';
|
||||
break;
|
||||
case ']':
|
||||
endOfList = true;
|
||||
break;
|
||||
|
||||
@ -45,7 +45,7 @@ public static class OldFilework
|
||||
value += st[i];
|
||||
}
|
||||
reader.Close();
|
||||
//if (value == "") throw new System.Exception($"ReadFromConfig({configfile}, {key}) error: key not found");
|
||||
//if (value.NullOrEmpty()) throw new System.Exception($"ReadFromConfig({configfile}, {key}) error: key not found");
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user