Project file maintenance, C# 7.2 (#108)

1. Updates all the NuGet packages (except CommandLineParser because they ruined their API)
2. Makes all projects use C# 7.2 explicitly. (not latest)
3. Use some C# 7.2 features like readonly structs and default literals.
This commit is contained in:
Pieter-Jan Briers
2018-09-13 20:09:53 +02:00
committed by GitHub
parent 1dabe49234
commit 7a91fb7512
9 changed files with 27 additions and 58 deletions

View File

@@ -72,7 +72,7 @@ namespace Content.Server.GameObjects.EntitySystems
private static bool TryGetAttachedComponent<T>(IPlayerSession session, out T component)
where T : Component
{
component = default(T);
component = default;
var ent = session.AttachedEntity;