File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ internal NSArray (NativeHandle handle) : base (handle)
4848 {
4949 }
5050
51- static public NSArray < TKey > ? FromNSObjects ( params TKey [ ] items )
51+ static public NSArray < TKey > FromNSObjects ( params TKey [ ] items )
5252 {
5353 if ( items is null )
5454 throw new ArgumentNullException ( nameof ( items ) ) ;
5555
5656 return FromNSObjects ( items . Length , items ) ;
5757 }
5858
59- static public NSArray < TKey > ? FromNSObjects ( int count , params TKey [ ] items )
59+ static public NSArray < TKey > FromNSObjects ( int count , params TKey [ ] items )
6060 {
6161 if ( items is null )
6262 throw new ArgumentNullException ( nameof ( items ) ) ;
@@ -71,7 +71,7 @@ internal NSArray (NativeHandle handle) : base (handle)
7171 Marshal . WriteIntPtr ( buf , ( int ) ( i * IntPtr . Size ) , h ) ;
7272 }
7373 IntPtr ret = NSArray . FromObjects ( buf , count ) ;
74- var arr = Runtime . GetNSObject < NSArray < TKey > > ( ret ) ;
74+ var arr = Runtime . GetNSObject < NSArray < TKey > > ( ret ) ! ;
7575 Marshal . FreeHGlobal ( buf ) ;
7676 return arr ;
7777 }
You can’t perform that action at this time.
0 commit comments