Move back to default for C#
This commit is contained in:
Родитель
fc49144b33
Коммит
462f5f4bb2
|
@ -125,7 +125,7 @@ namespace MonkeyCache.Tests
|
|||
|
||||
|
||||
var cached = barrel.Get<Monkey>(url);
|
||||
Assert.AreEqual(cached, default);
|
||||
Assert.AreEqual(cached, default(Monkey));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>default</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>default</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -125,7 +125,7 @@ namespace MonkeyCache
|
|||
}
|
||||
|
||||
if (ent == null)
|
||||
return default;
|
||||
return default(T);
|
||||
|
||||
return JsonConvert.DeserializeObject<T>(ent.Contents, jsonSettings);
|
||||
}
|
||||
|
|
|
@ -57,11 +57,11 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>default</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>default</LangVersion>
|
||||
<DebugType>full</DebugType>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
</PropertyGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче