Skip to content

Commit 98f818a

Browse files
committed
6. Optional refactoring that reduces #if directives in merged TdsParserStateObject also benefits merged SqlInternalTransaction.
1 parent 6b00579 commit 98f818a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlInternalTransaction.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ internal void CloseFromConnection()
203203
}
204204
finally
205205
{
206-
#if NETFRAMEWORK
207206
TdsParser.ReliabilitySection.Assert("unreliable call to CloseFromConnection"); // you need to setup for a thread abort somewhere before you call this method
208-
#endif
209207
if (processFinallyBlock)
210208
{
211209
// Always ensure we're zombied; 2005 will send an EnvChange that

0 commit comments

Comments
 (0)