chore(content): Updates to C# 9 syntax (#373)

This commit is contained in:
Kamron Batman 2020-12-30 12:50:10 -08:00 • committed by GitHub
parent a59fda6a3a
commit 1e2242bb1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 155 additions and 405 deletions

View file

@ -1,6 +1,3 @@
using System;
using Server.HuePickers;
namespace Server.Network
{
public sealed class StatLockInfo : Packet

View file

@ -25,12 +25,12 @@ namespace Server.Tests.Network
DelayedExecute(() =>
{
; // Write some data into the pipe
var result = writer.TryGetMemory();
Assert.True(result.Buffer[0].Count == 99);
result.Buffer[0][0] = 0x1;
result.Buffer[0][1] = 0x2;
result.Buffer[0][2] = 0x3;
// Write some data into the pipe
var r = writer.TryGetMemory();
Assert.True(r.Buffer[0].Count == 99);
r.Buffer[0][0] = 0x1;
r.Buffer[0][1] = 0x2;
r.Buffer[0][2] = 0x3;
writer.Advance(3);
writer.Flush();