/// <summary> /// Creates a CertificateIdentifierCollection object. /// </summary> public static Opc.Ua.CertificateIdentifierCollection FromCertificateList(CertificateList input) { Opc.Ua.CertificateIdentifierCollection output = new Opc.Ua.CertificateIdentifierCollection(); if (input != null && input.Certificates != null) { for (int ii = 0; ii < input.Certificates.Count; ii++) { output.Add(FromCertificateIdentifier(input.Certificates[ii])); } } return(output); }
/// <summary> /// Creates a CertificateList object. /// </summary> public static CertificateList ToCertificateList(Opc.Ua.CertificateIdentifierCollection input) { CertificateList output = new CertificateList(); if (input != null) { output.ValidationOptions = (int)0; output.Certificates = new ListOfCertificateIdentifier(); for (int ii = 0; ii < input.Count; ii++) { output.Certificates.Add(ToCertificateIdentifier(input[ii])); } } return(output); }