;         }          /// <summary>Signs the document using the detached mode, CMS or CAdES equivalent.</summary>         /// <remarks>         /// Signs the document using the detached mode, CMS or CAdES equivalent.         /// <br /><br />         /// NOTE: This method closes the underlying pdf document. This means, that current instance         /// of PdfSigner cannot be used after this method call.         /// </remarks>         /// <param name="externalSignature">the interface providing the actual signing</param>         /// <param name="chain">the certificate chain</param>         /// <param name="crlList">the CRL list</param>         /// <param name="ocspClient">the OCSP client</param>         /// <param name="tsaClient">the Timestamp client</param>         /// <param name="estimatedSize">the reserved size for the signature. It will be estimated if 0</param>         /// <param name="sigtype">Either Signature.CMS or Signature.CADES</param>         public virtual void SignDetached(IExternalSignature externalSignature, X000Certificate[] chain, ICollection             <ICrlClient> crlList, IOcspClient ocspClient, ITSAClient tsaClient, int estimatedSize, PdfSigner.CryptoStandard              sigtype) {             SignDetached(externalSignature, chain, crlList, ocspClient, tsaClient, estimatedSize, sigtype, 