Skip to content

Commit 839b83c

Browse files
authored
DynamicMethod permit ref returns in .NET Core 2.1+ (#9335)
Fixes dotnet/runtime#92670
1 parent 8d6482e commit 839b83c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

xml/System.Reflection.Emit/DynamicMethod.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
<exception cref="T:System.ArgumentException">An element of <paramref name="parameterTypes" /> is <see langword="null" /> or <see cref="T:System.Void" />.</exception>
220220
<exception cref="T:System.ArgumentNullException">
221221
<paramref name="name" /> is <see langword="null" />.</exception>
222-
<exception cref="T:System.NotSupportedException">
222+
<exception cref="T:System.NotSupportedException">.NET Framework and .NET Core versions older than 2.1:
223223
<paramref name="returnType" /> is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
224224
<related type="Article" href="/dotnet/framework/reflection-and-codedom/how-to-define-and-execute-dynamic-methods">How to: Define and Execute Dynamic Methods</related>
225225
<related type="Article" href="/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit">Security Issues in Reflection Emit</related>
@@ -326,7 +326,7 @@
326326
<exception cref="T:System.ArgumentException">An element of <paramref name="parameterTypes" /> is <see langword="null" /> or <see cref="T:System.Void" />.</exception>
327327
<exception cref="T:System.ArgumentNullException">
328328
<paramref name="name" /> is <see langword="null" />.</exception>
329-
<exception cref="T:System.NotSupportedException">
329+
<exception cref="T:System.NotSupportedException">.NET Framework and .NET Core versions older than 2.1:
330330
<paramref name="returnType" /> is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
331331
<related type="Article" href="/dotnet/framework/reflection-and-codedom/how-to-define-and-execute-dynamic-methods">How to: Define and Execute Dynamic Methods</related>
332332
<related type="Article" href="/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit">Security Issues in Reflection Emit</related>
@@ -430,7 +430,7 @@
430430
-or-
431431

432432
<paramref name="m" /> is <see langword="null" />.</exception>
433-
<exception cref="T:System.NotSupportedException">
433+
<exception cref="T:System.NotSupportedException">.NET Framework and .NET Core versions older than 2.1:
434434
<paramref name="returnType" /> is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
435435
<related type="Article" href="/dotnet/framework/reflection-and-codedom/how-to-define-and-execute-dynamic-methods">How to: Define and Execute Dynamic Methods</related>
436436
<related type="Article" href="/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit">Security Issues in Reflection Emit</related>
@@ -546,8 +546,8 @@
546546
-or-
547547

548548
<paramref name="owner" /> is <see langword="null" />.</exception>
549-
<exception cref="T:System.NotSupportedException">
550-
<paramref name="returnType" /> is <see langword="null" />, or is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
549+
<exception cref="T:System.NotSupportedException">.NET Framework and .NET Core versions older than 2.1:
550+
<paramref name="returnType" /> is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
551551
<related type="Article" href="/dotnet/framework/reflection-and-codedom/how-to-define-and-execute-dynamic-methods">How to: Define and Execute Dynamic Methods</related>
552552
<related type="Article" href="/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit">Security Issues in Reflection Emit</related>
553553
</Docs>
@@ -645,7 +645,7 @@
645645
-or-
646646

647647
<paramref name="m" /> is <see langword="null" />.</exception>
648-
<exception cref="T:System.NotSupportedException">
648+
<exception cref="T:System.NotSupportedException">.NET Framework and .NET Core versions older than 2.1:
649649
<paramref name="returnType" /> is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
650650
<related type="Article" href="/dotnet/framework/reflection-and-codedom/how-to-define-and-execute-dynamic-methods">How to: Define and Execute Dynamic Methods</related>
651651
<related type="Article" href="/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit">Security Issues in Reflection Emit</related>
@@ -744,8 +744,8 @@
744744
-or-
745745

746746
<paramref name="owner" /> is <see langword="null" />.</exception>
747-
<exception cref="T:System.NotSupportedException">
748-
<paramref name="returnType" /> is <see langword="null" />, or is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
747+
<exception cref="T:System.NotSupportedException">.NET Framework and .NET Core versions older than 2.1:
748+
<paramref name="returnType" /> is a type for which <see cref="P:System.Type.IsByRef" /> returns <see langword="true" />.</exception>
749749
<related type="Article" href="/dotnet/framework/reflection-and-codedom/how-to-define-and-execute-dynamic-methods">How to: Define and Execute Dynamic Methods</related>
750750
<related type="Article" href="/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit">Security Issues in Reflection Emit</related>
751751
</Docs>

0 commit comments

Comments
 (0)