Skip to content

Commit

Permalink
Merge pull request #48245 from Youssef1313/patch-42
Browse files Browse the repository at this point in the history
Remove IDE0051 suppression
  • Loading branch information
sharwell committed Dec 2, 2021
2 parents 8a92d8a + 59ed36a commit 6493157
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
[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()
{
Expand Down

0 comments on commit 6493157

Please sign in to comment.