From b03a6653ff4ffaf5ec09d91aa4e57f90a6fedddb Mon Sep 17 00:00:00 2001 From: sk-zk Date: Fri, 18 Oct 2024 02:38:28 +0200 Subject: [PATCH] Use collection expression --- TruckLib.Core/Token.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TruckLib.Core/Token.cs b/TruckLib.Core/Token.cs index 6c45645..2107ae6 100644 --- a/TruckLib.Core/Token.cs +++ b/TruckLib.Core/Token.cs @@ -17,11 +17,11 @@ public struct Token : IBinarySerializable /// The character set of this type. /// public static readonly char[] CharacterSet = - { + [ '\0', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '_' - }; + ]; private static readonly int CharsetLength = CharacterSet.Length; // =38