Skip to content

Commit 37565d2

Browse files
committed
Refactoring
1 parent 27a9881 commit 37565d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbConnectionPoolManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void CleanConnectionsImpl()
185185
void CheckDisposedImpl()
186186
{
187187
if (_disposed)
188-
throw new ObjectDisposedException(typeof(Pool).Name);
188+
throw new ObjectDisposedException(nameof(Pool));
189189
}
190190

191191
FbConnectionInternal CreateNewConnectionIfPossibleImpl(FbConnectionString connectionString)
@@ -259,7 +259,7 @@ void CleanupCallback(object o)
259259
void CheckDisposed()
260260
{
261261
if (Volatile2.Read(ref _disposed) == 1)
262-
throw new ObjectDisposedException(typeof(FbConnectionPoolManager).Name);
262+
throw new ObjectDisposedException(nameof(FbConnectionPoolManager));
263263
}
264264
}
265265
}

0 commit comments

Comments
 (0)