mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Use C# 7
This commit is contained in:
parent
d6f16782ff
commit
3ffb613f80
9 changed files with 19 additions and 33 deletions
|
|
@ -81,10 +81,9 @@ namespace MapControl
|
|||
{
|
||||
if (responseMessage.IsSuccessStatusCode)
|
||||
{
|
||||
IEnumerable<string> tileInfo;
|
||||
byte[] buffer = null;
|
||||
|
||||
if (!responseMessage.Headers.TryGetValues("X-VE-Tile-Info", out tileInfo) ||
|
||||
if (!responseMessage.Headers.TryGetValues("X-VE-Tile-Info", out IEnumerable<string> tileInfo) ||
|
||||
!tileInfo.Contains("no-tile"))
|
||||
{
|
||||
buffer = await responseMessage.Content.ReadAsByteArrayAsync().ConfigureAwait(continueOnCapturedContext);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue