17 references to new
System.Private.Windows.Core (1)
Windows\Win32\System\Com\SafeArrayScope.cs (1)
134
public SafeArrayScope(T[] array) :
this
((uint)array.Length)
System.Windows.Forms (1)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
415
using SafeArrayScope<object> scope =
new
(1);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
88
SafeArrayScope<double> result =
new
((uint)(rectArray.Count * 4));
109
SafeArrayScope<double> result =
new
(4);
System.Windows.Forms.Primitives.Tests (13)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (6)
546
SafeArrayScope<double> array =
new
(4);
576
SafeArrayScope<double> array =
new
(4);
602
SafeArrayScope<double> array =
new
(4);
641
SafeArrayScope<double> array =
new
(4);
690
SafeArrayScope<double> array =
new
(4);
772
SafeArrayScope<double> array =
new
(4);
Windows\Win32\System\Com\SafeArrayScopeTests.cs (7)
23
using SafeArrayScope<string> scope =
new
(size: 1);
24
using SafeArrayScope<int> scope2 =
new
(size: 0);
32
Assert.Throws<ArgumentException>(() => new
SafeArrayScope
<short>(size: 1));
38
using SafeArrayScope<string> scope =
new
(size: 2);
51
using SafeArrayScope<int> scope =
new
(size: 2);
62
SafeArrayScope<string> scope =
new
(size: 1);
73
ArgumentException e = Assert.Throws<ArgumentException>(() => new
SafeArrayScope
<IUnknown>(size: 1));