从VB转换为C#证书

时间:2014-04-28 22:34:10

标签: c# vb.net certificate

我在visual basic中有这个代码:

Dim CERT_SIS As String = "my.cer"
Dim CerNo As String
Dim CerSAT As System.Security.Cryptography.X509Certificates.X509Certificate
CerSAT = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile(CERT_SIS)
CerNo = StrReverse(System.Text.Encoding.ASCII.GetString(CerSAT.GetSerialNumber))

我想将其转换为C#...

并且它给我这个代码的错误:

CerNo = StrReverse(System.Text.Encoding.ASCII.GetString(CerSAT.GetSerialNumber))

我该怎么办?

0 个答案:

没有答案