diff --git a/src/VisualStudio/CSharp/Impl/ProjectSystemShim/HACK_VariantStructure.cs b/src/VisualStudio/CSharp/Impl/ProjectSystemShim/HACK_VariantStructure.cs index 5a8a052ec26d3..4f45bcf53f6b3 100644 --- a/src/VisualStudio/CSharp/Impl/ProjectSystemShim/HACK_VariantStructure.cs +++ b/src/VisualStudio/CSharp/Impl/ProjectSystemShim/HACK_VariantStructure.cs @@ -23,18 +23,17 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim /// as this structure. We can then pick out this broken pattern, and convert /// it to null instead of true. /// + [StructLayout(LayoutKind.Sequential)] internal struct HACK_VariantStructure { private readonly short _type; -#pragma warning disable IDE0051 // Remove unused private members - padding bytes private readonly short _padding1; private readonly short _padding2; private readonly short _padding3; private readonly short _booleanValue; private readonly IntPtr _padding4; // this will be aligned to the IntPtr-sized address -#pragma warning restore IDE0051 // Remove unused private members public unsafe object ConvertToObject() {