+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
//
// System.Security.Cryptography.X509Certificates.X509CertificateCollection
//
-// Author:
+// Authors:
// Lawrence Pit (loz@cable.a2000.nl)
+// Sebastien Pouliot (spouliot@motus.com)
//
using System;
{
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)
}
object IEnumerator.Current {
- get { return (X509Certificate) enumerator.Current; }
+ get { return enumerator.Current; }
}
// Methods