/// <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]); } }