nameof instead of GetType().Name

This commit is contained in:
Bond_009 2023-05-04 14:42:39 +02:00
parent 0d67901e37
commit 8e1f0d53c1

View File

@ -38,9 +38,9 @@ public sealed class ConnectionPool : IDisposable
return new ManagedConnection(_connections.Take(), this);
void ThrowObjectDisposedException()
static void ThrowObjectDisposedException()
{
throw new ObjectDisposedException(GetType().Name);
throw new ObjectDisposedException(nameof(ConnectionPool));
}
}