Skip to content
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions src/tests/Interop/COM/ComWrappers/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ class Test : ITest, ICustomQueryInterface
{
public static int InstanceCount = 0;

private int id;
private int value = -1;
public Test() { InstanceCount++; }
~Test() { InstanceCount--; }
public Test() { id = Interlocked.Increment(ref InstanceCount); }
~Test() { Interlocked.Decrement(ref InstanceCount); id = -1; }

public void SetValue(int i) => this.value = i;
public int GetValue() => this.value;
Expand Down