21 references to Object
System.Windows.Forms (1)
System\Windows\Forms\Rendering\TextExtensions.cs (1)
246
using SelectObjectScope fontSelection = new(hdc, font.
Object
);
System.Windows.Forms.Primitives.Tests (19)
System\Windows\Forms\RefCacheTests.cs (19)
16
object first = firstScope.
Object
;
18
object second = secondScope.
Object
;
28
Assert.Same(first, thirdScope.
Object
);
41
Assert.Equal(0, firstScope.
Object
.DisposeCount);
42
Assert.Equal(0, secondScope.
Object
.DisposeCount);
43
Assert.Equal(0, thirdScope.
Object
.DisposeCount);
44
Assert.Equal(0, fourthScope.
Object
.DisposeCount);
50
Assert.NotSame(fifthScope.
Object
, sixthScope.
Object
);
60
Assert.Equal(0, firstScope.
Object
.DisposeCount);
61
Assert.Equal(0, secondScope.
Object
.DisposeCount);
62
Assert.Equal(0, thirdScope.
Object
.DisposeCount);
63
Assert.Equal(0, fourthScope.
Object
.DisposeCount);
66
Assert.Equal(1, fifthScope.
Object
.DisposeCount);
67
Assert.Equal(1, sixthScope.
Object
.DisposeCount);
72
Assert.Equal(1, firstScope.
Object
.DisposeCount);
73
Assert.Equal(1, secondScope.
Object
.DisposeCount);
74
Assert.Equal(0, thirdScope.
Object
.DisposeCount);
75
Assert.Equal(0, fourthScope.
Object
.DisposeCount);
System.Windows.Forms.Tests (1)
Text\FontMetrics.cs (1)
144
using SelectObjectScope fontSelection = new(screen, hfont.
Object
);