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:
parent
385fead81a
commit
e0fe39195d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user