Skip to content

Commit d692cca

Browse files
committed
Added a implementation to CopyTo on MySqlParameterCollection
1 parent 7eb4873 commit d692cca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/MySqlConnector/MySql.Data.MySqlClient/MySqlParameterCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public MySqlParameter AddWithValue(string parameterName, object value)
6363

6464
public override bool Contains(string value) => IndexOf(value) != -1;
6565

66-
public override void CopyTo(Array array, int index) => throw new NotSupportedException();
66+
public override void CopyTo(Array array, int index) => ((ICollection) m_parameters).CopyTo( array, index);
6767

6868
public override void Clear()
6969
{

src/MySqlConnector/MySqlConnector.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net45;net461;netstandard1.3;netstandard2.0;netcoreapp2.1</TargetFrameworks>
@@ -10,8 +10,8 @@
1010
<PackageId>MySqlConnector</PackageId>
1111
<PackageTags>mysql;mysqlconnector;async;ado.net;database;netcore</PackageTags>
1212
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
13-
<AssemblyVersion>0.45.2.0</AssemblyVersion>
14-
<Version>0.45.2</Version>
13+
<AssemblyVersion>0.45.3.0</AssemblyVersion>
14+
<Version>0.45.3</Version>
1515
</PropertyGroup>
1616

1717
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' ">

0 commit comments

Comments
 (0)