Skip to content

Commit d1d3669

Browse files
committed
Remove optional default parameters
1 parent 5738a92 commit d1d3669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ private static void ChangePassword(string connectionString, SqlConnectionString
23682368
SqlInternalConnectionTds con = null;
23692369
try
23702370
{
2371-
con = new SqlInternalConnectionTds(null, connectionOptions, credential, null, newPassword, newSecurePassword, false, null, null, null, null);
2371+
con = new SqlInternalConnectionTds(null, connectionOptions, credential, null, newPassword, newSecurePassword, false);
23722372
}
23732373
finally
23742374
{
@@ -2491,7 +2491,7 @@ public IDictionary<string, object> RetrieveInternalInfo()
24912491
private Assembly ResolveTypeAssembly(AssemblyName asmRef, bool throwOnError)
24922492
{
24932493
Debug.Assert(TypeSystemAssemblyVersion != null, "TypeSystemAssembly should be set !");
2494-
if (string.Compare(asmRef.Name, "Microsoft.SqlServer.Types", StringComparison.OrdinalIgnoreCase) == 0)
2494+
if (string.Equals(asmRef.Name, "Microsoft.SqlServer.Types", StringComparison.OrdinalIgnoreCase))
24952495
{
24962496
if (asmRef.Version != TypeSystemAssemblyVersion && SqlClientEventSource.Log.IsTraceEnabled())
24972497
{

0 commit comments

Comments
 (0)