Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f506d65

Browse files
authored
Fixed polyfill for TypeBuilder.CreateType (#1261)
#1228
1 parent db30b87 commit f506d65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/Python.Runtime.15.csproj

+1-1
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

+1-1
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)