Remove unnecessary ThrowIfCreated call (#23839)
authorNext Turn <45985406+NextTurn@users.noreply.github.com>
Sat, 13 Apr 2019 19:06:35 +0000 (03:06 +0800)
committerJan Kotas <jkotas@microsoft.com>
Sat, 13 Apr 2019 19:06:35 +0000 (12:06 -0700)
src/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.cs

index e611c60..9d8cc65 100644 (file)
@@ -1979,8 +1979,6 @@ namespace System.Reflection.Emit
             if (IsCreated())
                 return m_bakedRuntimeType;
 
-            ThrowIfCreated();
-
             if (m_typeInterfaces == null)
                 m_typeInterfaces = new List<Type>();