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