Skip to content

Commit a3a07f7

Browse files
committed
Portability fixes
1 parent 7519bac commit a3a07f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crypto/src/cms/CMSSignedHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ internal string GetEncOid(
440440

441441
public IX509Store GetCertificates(Asn1Set certificates)
442442
{
443-
ArrayList certList = new ArrayList();
443+
IList certList = Platform.CreateArrayList();
444444
if (certificates != null)
445445
{
446446
foreach (Asn1Encodable enc in certificates)

crypto/src/openpgp/PgpObjectFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public IList FilterPgpObjects(Type type)
151151
PgpObject pgpObject;
152152
while ((pgpObject = NextPgpObject()) != null)
153153
{
154-
if (type.IsAssignableFrom(pgpObject.GetType()))
154+
if (type.IsInstanceOfType(pgpObject.GetType()))
155155
{
156156
result.Add(pgpObject);
157157
}

0 commit comments

Comments
 (0)