From: Next Turn <45985406+NextTurn@users.noreply.github.com> Date: Sat, 13 Apr 2019 19:06:35 +0000 (+0800) Subject: Remove unnecessary ThrowIfCreated call (#23839) X-Git-Tag: accepted/tizen/unified/20190813.215958~46^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ef60d71f6b2c834c2c2c414366a709818fe2f42;p=platform%2Fupstream%2Fcoreclr.git Remove unnecessary ThrowIfCreated call (#23839) --- diff --git a/src/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.cs b/src/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.cs index e611c60..9d8cc65 100644 --- a/src/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.cs +++ b/src/System.Private.CoreLib/src/System/Reflection/Emit/TypeBuilder.cs @@ -1979,8 +1979,6 @@ namespace System.Reflection.Emit if (IsCreated()) return m_bakedRuntimeType; - ThrowIfCreated(); - if (m_typeInterfaces == null) m_typeInterfaces = new List();