Must use static readonly instead of const

Instead of using const, we must use static readonly...
This commit is contained in:
yankejustin 2015-05-21 12:23:54 -04:00
parent 8cbab66bf8
commit 9e175378fc
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{