private void CopyIneritedDefaultDocs() { if (_configurationWrapper.IsServerConfigurationPath()) { return; } var list = new FileElement[_defaultDocumentCollection.Count]; ((ICollection)_defaultDocumentCollection).CopyTo(list, 0); _defaultDocumentCollection.Clear(); foreach (FileElement f in list) { _defaultDocumentCollection.AddCopy(f); } }
private void CopyIneritedDefaultDocs() { if (_managementUnit.ConfigurationPath.PathType == ConfigurationPathType.Server) { return; } FileElement[] list = new FileElement[_defaultDocumentCollection.Count]; ((ICollection)_defaultDocumentCollection).CopyTo(list, 0); _defaultDocumentCollection.Clear(); foreach (FileElement f in list) { _defaultDocumentCollection.AddCopy(f); } }