13 references to CreateScope
System.Windows.Forms (1)
System\Windows\Forms\Rendering\GdiCache.cs (1)
95
return font is null ? new FontCache.Scope() : s_fontCache.GetEntry(font, quality).
CreateScope
();
System.Windows.Forms.Primitives (2)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (2)
41
return PenCache.GetEntry(color).
CreateScope
();
58
return BrushCache.GetEntry(color).
CreateScope
();
System.Windows.Forms.Primitives.Tests (10)
System\Windows\Forms\RefCacheTests.cs (10)
14
var firstScope = cache.GetEntry(1).
CreateScope
();
17
var secondScope = cache.GetEntry(1).
CreateScope
();
26
using var thirdScope = cache.GetEntry(1).
CreateScope
();
37
var firstScope = cache.GetEntry(1).
CreateScope
();
38
var secondScope = cache.GetEntry(2).
CreateScope
();
39
var thirdScope = cache.GetEntry(3).
CreateScope
();
40
var fourthScope = cache.GetEntry(4).
CreateScope
();
47
var fifthScope = cache.GetEntry(5).
CreateScope
();
48
var sixthScope = cache.GetEntry(5).
CreateScope
();
69
using var seventhScope = cache.GetEntry(7).
CreateScope
();