コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="X509ChainElementCollectionWrap"/> class.
        /// </summary>
        /// <param name="collection">
        /// The collection.
        /// </param>
        public void Initialize(X509ChainElementCollection collection)
        {
            this.elements = new IX509ChainElement[collection.Count];
            var elementFactory = new X509ChainElementFactory(this.file, this.path);

            for (var i = 0; i < this.elements.Length; i++)
            {
                this.elements[i] = elementFactory.Create(collection[i]);
            }
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="X509ChainElementCollectionWrap"/> class.
 /// </summary>
 /// <param name="collection">
 /// The collection.
 /// </param>
 public void Initialize(X509ChainElementCollection collection)
 {
     this.elements = new IX509ChainElement[collection.Count];
     var elementFactory = new X509ChainElementFactory(this.file, this.path);
     for (var i = 0; i < this.elements.Length; i++)
     {
         this.elements[i] = elementFactory.Create(collection[i]);
     }
 }