Removed using C#7 features

fonts_experiment
Valeriy Mironov 2018-01-10 10:27:13 +02:00
parent 6074eeb335
commit 3e6f8c44fe
6 changed files with 12 additions and 7 deletions

View File

@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp60</s:String></wpf:ResourceDictionary>

View File

@ -1,5 +1,4 @@
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json;
using WatchFace.Parser.Attributes;
using WatchFace.Parser.Elements.BasicElements;
@ -23,14 +22,14 @@ namespace WatchFace.Parser.Elements.WeatherElements
[JsonProperty("Unknown3")]
private Coordinates Unknown3
{
set => DayAlt = value;
set { DayAlt = value; }
}
// For compatibility with "Unknown4" JSON attribute
[JsonProperty("Unknown4")]
private Coordinates Unknown4
{
set => NightAlt = value;
set { NightAlt = value; }
}
}
}

View File

@ -22,7 +22,7 @@ namespace WatchFace.Parser.Elements.WeatherElements
[JsonProperty("Unknown3")]
private Coordinates Unknown3
{
set => CoordinatesAlt = value;
set { CoordinatesAlt = value; }
}
}
}

View File

@ -1,11 +1,11 @@
using System.Collections;
using System.Collections.Generic;
using WatchFace.Parser.Models;
namespace WatchFace.Parser.Utils
{
public class DrawingOrderIterator
{
public static IEnumerable Iterate(long drawingOrder)
public static IEnumerable<DrawingOrderPosition> Iterate(long drawingOrder)
{
var order = drawingOrder;
while (order != 0)

View File

@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp60</s:String></wpf:ResourceDictionary>

View File

@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp60</s:String></wpf:ResourceDictionary>