nameof instead of GetType().Name
This commit is contained in:
parent
0d67901e37
commit
8e1f0d53c1
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user