@@ -79,19 +79,13 @@ public bool UseTempReturn {
7979#pragma warning disable fomat
8080 return ( Method : this , ByRefParameterCount : byRefParameterCount ) switch {
8181 // focus first on the flags, since those are manually added and have more precedence
82- { ByRefParameterCount : > 0 } => true ,
83- { Method . ReleaseReturnValue : true } => true ,
84- { Method . IsFactory : true } => true ,
85- { Method . IsProxy : true } => true ,
86- { Method . MarshalNativeExceptions : true , Method . ReturnType . IsVoid : false } => true ,
82+ { ByRefParameterCount : > 0 } => true , { Method . ReleaseReturnValue : true } => true , { Method . IsFactory : true } => true , { Method . IsProxy : true } => true , { Method . MarshalNativeExceptions : true , Method . ReturnType . IsVoid : false } => true ,
8783
8884 // focus on the return type
89- { Method . ReturnType : { IsVoid : false , NeedsStret : true } } => true ,
90- { Method . ReturnType : { IsVoid : false , IsWrapped : true } } => true ,
91- { Method . ReturnType . IsNativeEnum : true } => true ,
92- { Method . ReturnType . SpecialType : SpecialType . System_Boolean
93- or SpecialType . System_Char or SpecialType . System_Delegate } => true ,
94- { Method . ReturnType . IsDelegate : true } => true ,
85+ { Method . ReturnType : { IsVoid : false , NeedsStret : true } } => true , { Method . ReturnType : { IsVoid : false , IsWrapped : true } } => true , { Method . ReturnType . IsNativeEnum : true } => true , {
86+ Method . ReturnType . SpecialType : SpecialType . System_Boolean
87+ or SpecialType . System_Char or SpecialType . System_Delegate
88+ } => true , { Method . ReturnType . IsDelegate : true } => true ,
9589 // default will be false
9690 _ => false
9791 } ;
0 commit comments