12 references to new
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
85return new(SAFEARRAY.CreateEmpty(VARENUM.VT_R8));
System\Windows\Forms\Automation\UiaTextRange.cs (1)
345SafeArrayScope<double> ownerBounds = new(result.data.parray);
Windows\Win32\System\Com\ComSafeArrayScope.cs (2)
30_value = new(value); 41_value = new(PInvokeCore.SafeArrayCreate(VARENUM.VT_UNKNOWN, 1, &saBound));
System.Windows.Forms.Primitives.Tests (8)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (6)
564using SafeArrayScope<double> actual = new((SAFEARRAY*)null); 594using SafeArrayScope<double> actual = new((SAFEARRAY*)null); 623using SafeArrayScope<double> safeArrayScope = new((SAFEARRAY*)null); 664using SafeArrayScope<double> actual = new((SAFEARRAY*)null); 747using SafeArrayScope<double> actual = new((SAFEARRAY*)null); 829using SafeArrayScope<double> actual = new((SAFEARRAY*)null);
Windows\Win32\System\Com\SafeArrayScopeTests.cs (2)
78e = Assert.Throws<ArgumentException>(() => new SafeArrayScope<IUnknown>(array)); 93ArgumentException e = Assert.Throws<ArgumentException>(() => new SafeArrayScope<string>(array));