Skip to content

Commit 012288d

Browse files
committed
Fixed polyfill for TypeBuilder.CreateType
#1228
1 parent db30b87 commit 012288d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/Python.Runtime.15.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123

124124
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
125125
<PackageReference Include="System.Security.Permissions" Version="4.4.0" />
126-
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
126+
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
127127
</ItemGroup>
128128

129129
<ItemGroup Condition="'$(TargetFramework)' == 'net40'">

src/runtime/polyfill/ReflectionPolifills.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static AssemblyBuilder DefineDynamicAssembly(this AppDomain appDomain, As
1616

1717
public static Type CreateType(this TypeBuilder typeBuilder)
1818
{
19-
return typeBuilder.GetTypeInfo().GetType();
19+
return typeBuilder.CreateTypeInfo();
2020
}
2121
#endif
2222
public static T GetCustomAttribute<T>(this Type type) where T: Attribute

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy