@@ -578,14 +578,14 @@ internal static Type[] GetInterfaces(RuntimeType type)
578578 [ LibraryImport ( RuntimeHelpers . QCall , EntryPoint = "RuntimeTypeHandle_GetConstraints" ) ]
579579 private static partial void GetConstraints ( QCallTypeHandle handle , ObjectHandleOnStack types ) ;
580580
581- internal Type [ ] GetConstraints ( )
581+ internal Type [ ] ? GetConstraints ( )
582582 {
583583 Type [ ] ? types = null ;
584584 RuntimeTypeHandle nativeHandle = GetNativeHandle ( ) ;
585585
586586 GetConstraints ( new QCallTypeHandle ( ref nativeHandle ) , ObjectHandleOnStack . Create ( ref types ) ) ;
587587
588- return types ! ;
588+ return types ;
589589 }
590590
591591 [ LibraryImport ( RuntimeHelpers . QCall , EntryPoint = "QCall_GetGCHandleForTypeHandle" ) ]
@@ -744,12 +744,12 @@ internal RuntimeType[] GetInstantiationInternal()
744744 return types ! ;
745745 }
746746
747- internal Type [ ] GetInstantiationPublic ( )
747+ internal Type [ ] ? GetInstantiationPublic ( )
748748 {
749749 Type [ ] ? types = null ;
750750 RuntimeTypeHandle nativeHandle = GetNativeHandle ( ) ;
751751 GetInstantiation ( new QCallTypeHandle ( ref nativeHandle ) , ObjectHandleOnStack . Create ( ref types ) , Interop . BOOL . FALSE ) ;
752- return types ! ;
752+ return types ;
753753 }
754754
755755 [ LibraryImport ( RuntimeHelpers . QCall , EntryPoint = "RuntimeTypeHandle_Instantiate" ) ]
@@ -1229,12 +1229,12 @@ internal static RuntimeType[] GetMethodInstantiationInternal(RuntimeMethodHandle
12291229 return types ! ;
12301230 }
12311231
1232- internal static Type [ ] GetMethodInstantiationPublic ( IRuntimeMethodInfo method )
1232+ internal static Type [ ] ? GetMethodInstantiationPublic ( IRuntimeMethodInfo method )
12331233 {
12341234 RuntimeType [ ] ? types = null ;
12351235 GetMethodInstantiation ( EnsureNonNullMethodInfo ( method ) . Value , ObjectHandleOnStack . Create ( ref types ) , Interop . BOOL . FALSE ) ;
12361236 GC . KeepAlive ( method ) ;
1237- return types ! ;
1237+ return types ;
12381238 }
12391239
12401240 [ MethodImpl ( MethodImplOptions . InternalCall ) ]
0 commit comments