Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2017-03-15 19:21:10 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2017-03-16 15:02:09 +0300
commita6155cbc4a59d8d91eda5775f35f935896510281 (patch)
tree2e7554f48a23534361ccaa2b83f8b9b7196bbfda /mcs/class/System.Data
parent85b2056a3616742b71fa3a09beb80aa1b4aa73f6 (diff)
[System.Data] Rename method parameters to match .NET contract
Diffstat (limited to 'mcs/class/System.Data')
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs4
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlCredential.cs10
2 files changed, 7 insertions, 7 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
index ff5dc821d85..40ccb46eb11 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
+++ b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
@@ -126,10 +126,10 @@ namespace System.Data.SqlClient
ConnectionString = connectionString;
}
- public SqlConnection (string connectionString, SqlCredential cred)
+ public SqlConnection (string connectionString, SqlCredential credential)
{
ConnectionString = connectionString;
- Credentials = cred;
+ Credentials = credential;
}
#endregion // Constructors
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlCredential.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlCredential.cs
index 5b15b48cb66..0bc80680560 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlCredential.cs
+++ b/mcs/class/System.Data/System.Data.SqlClient/SqlCredential.cs
@@ -49,13 +49,13 @@ namespace System.Data.SqlClient {
#region Constructors
- public SqlCredential (string user, SecureString password)
+ public SqlCredential (string userId, SecureString password)
{
- if (user == null)
- throw new ArgumentNullException("UserID");
+ if (userId == null)
+ throw new ArgumentNullException("userId");
if (password == null)
- throw new ArgumentNullException("Password");
- this.uid = user;
+ throw new ArgumentNullException("password");
+ this.uid = userId;
this.pwd = password;
}