diff --git a/LibTessDotNet/Sources/MeshUtils.cs b/LibTessDotNet/Sources/MeshUtils.cs index 3a8b219..e56def2 100644 --- a/LibTessDotNet/Sources/MeshUtils.cs +++ b/LibTessDotNet/Sources/MeshUtils.cs @@ -127,8 +127,6 @@ public interface ITypePool { private Queue _pool = new Queue(); - private static readonly Func Creator = Expression.Lambda>(Expression.New(typeof(T))).Compile(); - public object Get() { lock (_pool) @@ -138,7 +136,7 @@ public object Get() return _pool.Dequeue(); } } - return Creator(); + return new T(); } public void Return(object obj)