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

Commit ec41b2d

Browse files
committed
Clean up ctor, we don't need all this stuff
1 parent 6ff33f7 commit ec41b2d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/CredentialManagement/Credential.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,28 @@ static Credential()
3434
public Credential() : this(null, (string)null)
3535
{}
3636

37-
public Credential([AllowNull]string username = null,
37+
public Credential(
38+
[AllowNull]string username = null,
3839
[AllowNull]SecureString password = null,
39-
[AllowNull]string target = null,
40-
[AllowNull]CredentialType type = CredentialType.Generic)
40+
[AllowNull]string target = null)
4141
{
4242
Username = username;
4343
SecurePassword = password;
4444
Target = target;
45-
Type = type;
45+
Type = CredentialType.Generic;
4646
PersistenceType = PersistenceType.LocalComputer;
4747
_lastWriteTime = DateTime.MinValue;
4848
}
4949

5050
public Credential(
5151
[AllowNull]string username = null,
5252
[AllowNull]string password = null,
53-
[AllowNull]string target = null,
54-
[AllowNull]CredentialType type = CredentialType.Generic)
53+
[AllowNull]string target = null)
5554
{
5655
Username = username;
5756
Password = password;
5857
Target = target;
59-
Type = type;
58+
Type = CredentialType.Generic;
6059
PersistenceType = PersistenceType.Session;
6160
_lastWriteTime = DateTime.MinValue;
6261
}

0 commit comments

Comments
 (0)