From 462f5f4bb2d330eeb163ec720dfb3d3260a0e294 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 13 Dec 2017 01:14:24 -0800 Subject: [PATCH] Move back to default for C# --- src/MonkeyCache.Tests/BarrelTests.cs | 2 +- src/MonkeyCache.Tests/MonkeyCache.Tests.csproj | 4 ++-- src/MonkeyCache/Barrel.cs | 2 +- src/MonkeyCache/MonkeyCache.csproj | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/MonkeyCache.Tests/BarrelTests.cs b/src/MonkeyCache.Tests/BarrelTests.cs index 727fb68..b8128ad 100644 --- a/src/MonkeyCache.Tests/BarrelTests.cs +++ b/src/MonkeyCache.Tests/BarrelTests.cs @@ -125,7 +125,7 @@ namespace MonkeyCache.Tests var cached = barrel.Get(url); - Assert.AreEqual(cached, default); + Assert.AreEqual(cached, default(Monkey)); } diff --git a/src/MonkeyCache.Tests/MonkeyCache.Tests.csproj b/src/MonkeyCache.Tests/MonkeyCache.Tests.csproj index 4be7eb8..c2619d3 100644 --- a/src/MonkeyCache.Tests/MonkeyCache.Tests.csproj +++ b/src/MonkeyCache.Tests/MonkeyCache.Tests.csproj @@ -7,11 +7,11 @@ - latest + default - latest + default diff --git a/src/MonkeyCache/Barrel.cs b/src/MonkeyCache/Barrel.cs index 56809c8..3aa2721 100644 --- a/src/MonkeyCache/Barrel.cs +++ b/src/MonkeyCache/Barrel.cs @@ -125,7 +125,7 @@ namespace MonkeyCache } if (ent == null) - return default; + return default(T); return JsonConvert.DeserializeObject(ent.Contents, jsonSettings); } diff --git a/src/MonkeyCache/MonkeyCache.csproj b/src/MonkeyCache/MonkeyCache.csproj index 9ae6785..ccdf5e4 100644 --- a/src/MonkeyCache/MonkeyCache.csproj +++ b/src/MonkeyCache/MonkeyCache.csproj @@ -57,11 +57,11 @@ - latest + default - latest + default full true