You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to insert at the end of an InternetAddressList, it returns argument out of range. It is allowed in List<> implementation.
Platform (please complete the following information):
OS: Windows
.NET Runtime: CoreCLR
.NET Framework: .NET Core 3.1
MailKit Version: 2.4.1
To Reproduce
Code Examples
// Failures
var to = new InternetAddressList();
to.Add(new MailboxAddress("[email protected]"));
to.Insert(1, new MailboxAddress("[email protected]"));
to = new InternetAddressList();
to.Insert(0, new MailboxAddress("[email protected]"));
// This works
to = new InternetAddressList();
to.Add(new MailboxAddress("[email protected]"));
to.Insert(0, new MailboxAddress("[email protected]"));
Expected behavior
If I insert at the current count, it should act like Add.
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
bradlis7
changed the title
Insert at End Fails
InternetAddressList does not allow insert at end
Apr 22, 2020
Describe the bug
When attempting to insert at the end of an InternetAddressList, it returns argument out of range. It is allowed in
List<>
implementation.Platform (please complete the following information):
To Reproduce
Code Examples
Expected behavior
If I insert at the current count, it should act like
Add
.Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: