Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / MS / Internal / IO / Zip / ZipFileInfoCollection.cs / 1 / ZipFileInfoCollection.cs
//------------------------------------------------------------------------------ //------------- *** WARNING *** //------------- This file is part of a legally monitored development project. //------------- Do not check in changes to this project. Do not raid bugs on this //------------- code in the main PS database. Do not contact the owner of this //------------- code directly. Contact the legal team at ‘ZSLegal’ for assistance. //------------- *** WARNING *** //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is an internal class that enables interactions with Zip archives // for OPC scenarios // // History: // 11/19/2004: IgorBel: Initial creation. // //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections; namespace MS.Internal.IO.Zip { ////// The only reason for existence of this class is to restrict operations that caller of the /// ZipArchive.GetFiles is allowed to perform. We want to prevent any modifications to the /// actual collection of the FileItems as it is supposed to be a read-only data structure. /// Although this is an internal API it seems that the safeguards are warranted. /// internal class ZipFileInfoCollection : IEnumerable { //------------------------------------------------------ // // Internal NON API Constructor (this constructor is marked as internal // and isNOT part of the ZIP IO API surface // //----------------------------------------------------- internal ZipFileInfoCollection(ICollection zipFileInfoCollection) { _zipFileInfoCollection = zipFileInfoCollection; } //------------------------------------------------------ // // Internal API Methods (although these methods are marked as // Internal they are part of the internal ZIP IO API surface // //------------------------------------------------------ IEnumerator IEnumerable.GetEnumerator() { return _zipFileInfoCollection.GetEnumerator(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ private ICollection _zipFileInfoCollection; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //------------- *** WARNING *** //------------- This file is part of a legally monitored development project. //------------- Do not check in changes to this project. Do not raid bugs on this //------------- code in the main PS database. Do not contact the owner of this //------------- code directly. Contact the legal team at ‘ZSLegal’ for assistance. //------------- *** WARNING *** //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is an internal class that enables interactions with Zip archives // for OPC scenarios // // History: // 11/19/2004: IgorBel: Initial creation. // //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections; namespace MS.Internal.IO.Zip { ////// The only reason for existence of this class is to restrict operations that caller of the /// ZipArchive.GetFiles is allowed to perform. We want to prevent any modifications to the /// actual collection of the FileItems as it is supposed to be a read-only data structure. /// Although this is an internal API it seems that the safeguards are warranted. /// internal class ZipFileInfoCollection : IEnumerable { //------------------------------------------------------ // // Internal NON API Constructor (this constructor is marked as internal // and isNOT part of the ZIP IO API surface // //----------------------------------------------------- internal ZipFileInfoCollection(ICollection zipFileInfoCollection) { _zipFileInfoCollection = zipFileInfoCollection; } //------------------------------------------------------ // // Internal API Methods (although these methods are marked as // Internal they are part of the internal ZIP IO API surface // //------------------------------------------------------ IEnumerator IEnumerable.GetEnumerator() { return _zipFileInfoCollection.GetEnumerator(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ private ICollection _zipFileInfoCollection; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleWorkerRequest.cs
- CapabilitiesUse.cs
- StylusCollection.cs
- LassoSelectionBehavior.cs
- RecordBuilder.cs
- MemberHolder.cs
- GlyphElement.cs
- EarlyBoundInfo.cs
- EventLog.cs
- ZipIOExtraFieldPaddingElement.cs
- RuleInfoComparer.cs
- FormsAuthenticationModule.cs
- EntityDataSourceQueryBuilder.cs
- HtmlEncodedRawTextWriter.cs
- AppDomainGrammarProxy.cs
- ClientUrlResolverWrapper.cs
- ActivityExecutionWorkItem.cs
- ColumnMap.cs
- ItemType.cs
- StaticSiteMapProvider.cs
- Thread.cs
- DrawingAttributes.cs
- MetadataItem_Static.cs
- CDSCollectionETWBCLProvider.cs
- QilParameter.cs
- SelectionRangeConverter.cs
- WinEventQueueItem.cs
- SQLInt32Storage.cs
- NonVisualControlAttribute.cs
- UniqueConstraint.cs
- BindingCollection.cs
- HierarchicalDataSourceIDConverter.cs
- BooleanFunctions.cs
- CodeVariableDeclarationStatement.cs
- ColumnResizeUndoUnit.cs
- MarkedHighlightComponent.cs
- ThreadStartException.cs
- TemplateXamlTreeBuilder.cs
- GeneralTransformGroup.cs
- SynchronousChannel.cs
- UndirectedGraph.cs
- BindingSource.cs
- BuilderPropertyEntry.cs
- ProtectedConfiguration.cs
- ArgumentOutOfRangeException.cs
- SqlDataSourceCustomCommandEditor.cs
- WindowCollection.cs
- ProgressBarRenderer.cs
- HyperLinkStyle.cs
- __Filters.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DbExpressionVisitor_TResultType.cs
- FindCriteria.cs
- WebSysDisplayNameAttribute.cs
- TargetConverter.cs
- COM2FontConverter.cs
- ItemList.cs
- EventLogPermissionEntryCollection.cs
- MainMenu.cs
- CompositeCollectionView.cs
- KeyedQueue.cs
- BatchParser.cs
- RedBlackList.cs
- ComPlusServiceLoader.cs
- ProjectionPruner.cs
- WebConfigurationHostFileChange.cs
- DataGrid.cs
- MsdtcClusterUtils.cs
- PingOptions.cs
- RankException.cs
- CaseStatementSlot.cs
- InputScope.cs
- entitydatasourceentitysetnameconverter.cs
- InlineUIContainer.cs
- KeyEvent.cs
- COM2ExtendedBrowsingHandler.cs
- IsolatedStoragePermission.cs
- Mutex.cs
- FixedPosition.cs
- SqlDataSourceFilteringEventArgs.cs
- ButtonChrome.cs
- RowBinding.cs
- SqlMethodAttribute.cs
- SocketCache.cs
- dtdvalidator.cs
- Vector3D.cs
- WebScriptEnablingElement.cs
- AttributeEmitter.cs
- ControlPropertyNameConverter.cs
- FormatterConverter.cs
- XmlTextReaderImpl.cs
- UncommonField.cs
- ProgressBar.cs
- Crypto.cs
- SyndicationElementExtension.cs
- AssociationSet.cs
- EntryWrittenEventArgs.cs
- XmlSerializerNamespaces.cs
- WaitForChangedResult.cs
- _SSPIWrapper.cs