Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IDE0051 suppression #48245

Merged
merged 3 commits into from
Dec 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Youssef1313 marked this conversation as resolved.
Show resolved Hide resolved
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