From 9e175378fc3ed8f59bedc0bdfc6d6e9fbae9d23c Mon Sep 17 00:00:00 2001 From: yankejustin Date: Thu, 21 May 2015 12:23:54 -0400 Subject: [PATCH] Must use static readonly instead of const Instead of using const, we must use static readonly... --- Server/Core/Helper/Helper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Core/Helper/Helper.cs b/Server/Core/Helper/Helper.cs index 6350e4e8..cab66aea 100644 --- a/Server/Core/Helper/Helper.cs +++ b/Server/Core/Helper/Helper.cs @@ -9,7 +9,7 @@ public static class Helper { private const string CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; private static readonly Random _rnd = new Random(Environment.TickCount); - private const string[] sizes = new string[] { "B", "KB", "MB", "GB" }; + private static readonly string[] sizes = new string[] { "B", "KB", "MB", "GB" }; public static string GetRandomFilename(int length, string extension) {