diff --git a/ICD.Common.Utils.Tests/Extensions/EnumerableExtensionsTest.cs b/ICD.Common.Utils.Tests/Extensions/EnumerableExtensionsTest.cs index 6cf3a7d..9b72795 100644 --- a/ICD.Common.Utils.Tests/Extensions/EnumerableExtensionsTest.cs +++ b/ICD.Common.Utils.Tests/Extensions/EnumerableExtensionsTest.cs @@ -309,7 +309,7 @@ namespace ICD.Common.Utils.Tests.Extensions [Test] public void ToHashSetTest() { - IcdHashSet values = (new[] {1, 2, 3}).ToHashSet(); + IcdHashSet values = EnumerableExtensions.ToHashSet(new[] {1, 2, 3}); Assert.AreEqual(3, values.Count); Assert.IsTrue(values.Contains(1)); diff --git a/ICD.Common.Utils.Tests/ICD.Common.Utils.Tests_NetStandard.csproj b/ICD.Common.Utils.Tests/ICD.Common.Utils.Tests_NetStandard.csproj index 1b01be3..159e19e 100644 --- a/ICD.Common.Utils.Tests/ICD.Common.Utils.Tests_NetStandard.csproj +++ b/ICD.Common.Utils.Tests/ICD.Common.Utils.Tests_NetStandard.csproj @@ -2,7 +2,7 @@ Library - netcoreapp1.1 + netcoreapp2.0 ICD.Common.Utils.Tests @@ -16,9 +16,9 @@ - - - + + + diff --git a/ICD.Common.Utils/ICD.Common.Utils_NetStandard.csproj b/ICD.Common.Utils/ICD.Common.Utils_NetStandard.csproj index fe2e2a3..3392975 100644 --- a/ICD.Common.Utils/ICD.Common.Utils_NetStandard.csproj +++ b/ICD.Common.Utils/ICD.Common.Utils_NetStandard.csproj @@ -2,7 +2,7 @@ Library - netstandard1.6 + netstandard2.0 ICD.Common.Utils $(AssemblyName) True @@ -44,7 +44,7 @@ - + diff --git a/ICD.Common.Utils/Properties/AssemblyInfo.cs b/ICD.Common.Utils/Properties/AssemblyInfo.cs index eb85b04..a5c3849 100644 --- a/ICD.Common.Utils/Properties/AssemblyInfo.cs +++ b/ICD.Common.Utils/Properties/AssemblyInfo.cs @@ -3,5 +3,5 @@ [assembly: AssemblyTitle("ICD.Common.Utils")] [assembly: AssemblyCompany("ICD Systems")] [assembly: AssemblyProduct("ICD.Common.Utils")] -[assembly: AssemblyCopyright("Copyright © ICD Systems 2017")] +[assembly: AssemblyCopyright("Copyright © ICD Systems 2018")] [assembly: AssemblyVersion("1.0.1.*")] diff --git a/ICD.Common.Utils/Timers/SafeTimer.cs b/ICD.Common.Utils/Timers/SafeTimer.cs index c79b123..6953a35 100644 --- a/ICD.Common.Utils/Timers/SafeTimer.cs +++ b/ICD.Common.Utils/Timers/SafeTimer.cs @@ -18,7 +18,7 @@ namespace ICD.Common.Utils.Timers private readonly CTimer m_Timer; #else private readonly Timer m_Timer; - private int m_DueTime, m_RepeatPeriod; + private int m_RepeatPeriod; #endif private readonly Action m_Callback; @@ -55,9 +55,8 @@ namespace ICD.Common.Utils.Timers #if SIMPLSHARP m_Timer = new CTimer(SafeCallback, null, dueTime, repeatPeriod); #else - m_DueTime = (int)dueTime; m_RepeatPeriod = (int)repeatPeriod; - m_Timer = new Timer(SafeCallback, null, m_DueTime, m_RepeatPeriod); + m_Timer = new Timer(SafeCallback, null, (int)dueTime, m_RepeatPeriod); #endif } @@ -122,8 +121,7 @@ namespace ICD.Common.Utils.Timers #if SIMPLSHARP m_Timer.Reset(dueTime); #else - m_DueTime = (int)dueTime; - m_Timer.Change(m_DueTime, m_RepeatPeriod); + m_Timer.Change((int)dueTime, m_RepeatPeriod); #endif } @@ -137,9 +135,8 @@ namespace ICD.Common.Utils.Timers #if SIMPLSHARP m_Timer.Reset(dueTime, repeatPeriod); #else - m_DueTime = (int)dueTime; m_RepeatPeriod = (int)repeatPeriod; - m_Timer.Change(m_DueTime, m_RepeatPeriod); + m_Timer.Change((int)dueTime, m_RepeatPeriod); #endif }