From 6c23bc86832fefeffecc654ee93681efb831a9e2 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 26 Aug 2018 21:36:04 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/HttpUtility.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 7d4a1ba3..0401a75d 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -56,8 +56,18 @@ namespace WebSocketSharp.Net #region Private Fields private static Dictionary _entities; - private static char[] _hexChars = "0123456789abcdef".ToCharArray (); - private static object _sync = new object (); + private static char[] _hexChars; + private static object _sync; + + #endregion + + #region Static Constructor + + static HttpUtility () + { + _hexChars = "0123456789abcdef".ToCharArray (); + _sync = new object (); + } #endregion