1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-14 11:34:08 +02:00

Add HasValue method to CommandLineArgs

This commit is contained in:
chylex 2016-11-23 02:06:41 +01:00
parent 385fead81a
commit e0fe39195d

View File

@ -57,6 +57,10 @@ public void SetValue(string key, string value){
values[key.ToLowerInvariant()] = value;
}
public bool HasValue(string key){
return values.ContainsKey(key.ToLowerInvariant());
}
public string GetValue(string key, string defaultValue){
string val;
return values.TryGetValue(key.ToLowerInvariant(), out val) ? val : defaultValue;