From de25ccc9cd7e1dbb3d50d49e65aeb1e8afdfb57c Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Mon, 9 Mar 2015 01:31:50 -0700 Subject: [PATCH] Temporarily update struct => class. - Will be reverted back as denoted by issue: https://github.com/aspnet/HttpAbstractions/issues/222 --- src/Microsoft.Framework.WebEncoders/AllowedCharsBitmap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Framework.WebEncoders/AllowedCharsBitmap.cs b/src/Microsoft.Framework.WebEncoders/AllowedCharsBitmap.cs index 67918e5122..e05a917c56 100644 --- a/src/Microsoft.Framework.WebEncoders/AllowedCharsBitmap.cs +++ b/src/Microsoft.Framework.WebEncoders/AllowedCharsBitmap.cs @@ -6,7 +6,7 @@ using System.Diagnostics; namespace Microsoft.Framework.WebEncoders { - internal struct AllowedCharsBitmap + internal class AllowedCharsBitmap { private const int ALLOWED_CHARS_BITMAP_LENGTH = 0x10000 / (8 * sizeof(uint)); private uint[] _allowedCharsBitmap; @@ -34,7 +34,7 @@ namespace Microsoft.Framework.WebEncoders // Creates a deep copy of this bitmap public AllowedCharsBitmap Clone() { - AllowedCharsBitmap retVal; + var retVal = new AllowedCharsBitmap(); retVal._allowedCharsBitmap = (uint[])this._allowedCharsBitmap.Clone(); return retVal; }