diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2003-03-02 00:16:05 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2003-03-02 00:16:05 +0300 |
commit | 4926072584f4940857fad6cdfd2c986f84ccf6e2 (patch) | |
tree | fd884b1099aa1564417a7ddd845a8c1f7c4df591 /mcs/class/System/System.Security.Cryptography.X509Certificates | |
parent | 949c372713d5f4c4a20876f0e64f85d71de602ed (diff) |
2003-03-01 Sebastien Pouliot <spouliot@videotron.ca>
* X509CertificateCollection.cs: Fixed bugs in AddRange
(added the collection not the certificates in the collection).
svn path=/trunk/mcs/; revision=12091
Diffstat (limited to 'mcs/class/System/System.Security.Cryptography.X509Certificates')
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System/System.Security.Cryptography.X509Certificates/X509CertificateCollection.cs | 14 |
2 files changed, 13 insertions, 6 deletions
diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog b/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog index fced32483a9..da3b0415be3 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/ChangeLog @@ -1,3 +1,8 @@ +2003-03-01 Sebastien Pouliot <spouliot@videotron.ca> + + * X509CertificateCollection.cs: Fixed bugs in AddRange + (added the collection not the certificates in the collection). + 2003-01-30 Sebastien Pouliot <spouliot@videotron.ca> * X509CertificateCollection.cs: Replaced the use of the private diff --git a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509CertificateCollection.cs b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509CertificateCollection.cs index 6591b4919bd..3b5abccecd0 100644 --- a/mcs/class/System/System.Security.Cryptography.X509Certificates/X509CertificateCollection.cs +++ b/mcs/class/System/System.Security.Cryptography.X509Certificates/X509CertificateCollection.cs @@ -1,8 +1,9 @@ // // System.Security.Cryptography.X509Certificates.X509CertificateCollection // -// Author: +// Authors: // Lawrence Pit (loz@cable.a2000.nl) +// Sebastien Pouliot (spouliot@motus.com) // using System; @@ -47,17 +48,18 @@ public class X509CertificateCollection : CollectionBase, IEnumerable { { if (value == null) throw new ArgumentNullException ("value"); + for (int i = 0; i < value.Length; i++) - InnerList.Add (value); + InnerList.Add (value [i]); } public void AddRange (X509CertificateCollection value) { if (value == null) throw new ArgumentNullException ("value"); - int len = value.InnerList.Count; - for (int i = 0; i < len; i++) - InnerList.Add (value); + + for (int i = 0; i < value.InnerList.Count; i++) + InnerList.Add (value [i]); } public bool Contains (X509Certificate value) @@ -121,7 +123,7 @@ public class X509CertificateCollection : CollectionBase, IEnumerable { } object IEnumerator.Current { - get { return (X509Certificate) enumerator.Current; } + get { return enumerator.Current; } } // Methods |