We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02101f8 commit 6fa979fCopy full SHA for 6fa979f
src/PoolBase.cs
@@ -3,6 +3,7 @@
3
using System.Reflection;
4
using System.Text;
5
using System.Linq;
6
+using System.Runtime.CompilerServices;
7
8
namespace LightObjectPool
9
{
@@ -90,6 +91,9 @@ public void Dispose()
90
91
/// <summary>
92
/// Throws a <see cref="ObjectDisposedException"/> if the <see cref="Dispose()"/> method has been called.
93
/// </summary>
94
+#if !NET40
95
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
96
+#endif
97
protected void CheckDisposed()
98
99
if (_isDisposed) throw new ObjectDisposedException(this.GetType().FullName);
0 commit comments