mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Fixed ArgumentExceptions
This commit is contained in:
parent
87ff5043f6
commit
d4f5456dd5
10 changed files with 36 additions and 35 deletions
|
|
@ -21,12 +21,12 @@ namespace MapControl.Caching
|
|||
{
|
||||
if (folder == null)
|
||||
{
|
||||
throw new ArgumentNullException("The parameter folder must not be null.");
|
||||
throw new ArgumentNullException(nameof(folder));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(fileName))
|
||||
{
|
||||
throw new ArgumentException("The parameter fileName must not be null or empty.");
|
||||
throw new ArgumentException("The fileName argument must not be null or empty.", nameof(fileName));
|
||||
}
|
||||
|
||||
connection = Open(Path.Combine(folder.Path, fileName));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue