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 27a9881 commit 37565d2Copy full SHA for 37565d2
Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbConnectionPoolManager.cs
@@ -185,7 +185,7 @@ void CleanConnectionsImpl()
185
void CheckDisposedImpl()
186
{
187
if (_disposed)
188
- throw new ObjectDisposedException(typeof(Pool).Name);
+ throw new ObjectDisposedException(nameof(Pool));
189
}
190
191
FbConnectionInternal CreateNewConnectionIfPossibleImpl(FbConnectionString connectionString)
@@ -259,7 +259,7 @@ void CleanupCallback(object o)
259
void CheckDisposed()
260
261
if (Volatile2.Read(ref _disposed) == 1)
262
- throw new ObjectDisposedException(typeof(FbConnectionPoolManager).Name);
+ throw new ObjectDisposedException(nameof(FbConnectionPoolManager));
263
264
265
0 commit comments