Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 32fd475

Browse files
committed
🎨 Don't get the compiler too confused about overloads
1 parent 00ce759 commit 32fd475

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CredentialManagement/Credential.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public Credential() : this(null, (string)null)
3535
{}
3636

3737
public Credential(
38-
[AllowNull]string username = null,
39-
[AllowNull]SecureString password = null,
38+
[AllowNull]string username,
39+
[AllowNull]SecureString password,
4040
[AllowNull]string target = null)
4141
{
4242
Username = username;
@@ -48,8 +48,8 @@ public Credential(
4848
}
4949

5050
public Credential(
51-
[AllowNull]string username = null,
52-
[AllowNull]string password = null,
51+
[AllowNull]string username,
52+
[AllowNull]string password,
5353
[AllowNull]string target = null)
5454
{
5555
Username = username;
@@ -350,4 +350,4 @@ static void ValidatePasswordLength(byte[] passwordBytes)
350350
}
351351
}
352352
}
353-
}
353+
}

0 commit comments

Comments
 (0)