Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / IO / Zip / ZipFileInfoCollection.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CharacterBufferReference.cs
- JsonFormatWriterGenerator.cs
- SpecialNameAttribute.cs
- AsyncContentLoadedEventArgs.cs
- ChildDocumentBlock.cs
- PenContexts.cs
- ControlIdConverter.cs
- DataServiceContext.cs
- DataServiceSaveChangesEventArgs.cs
- NativeWrapper.cs
- LayoutManager.cs
- TextLineResult.cs
- CultureInfo.cs
- AssociationTypeEmitter.cs
- WizardStepBase.cs
- ExtendedProtectionPolicy.cs
- DesignerActionList.cs
- NameNode.cs
- ListenerUnsafeNativeMethods.cs
- ManagementDateTime.cs
- QilUnary.cs
- PhoneCallDesigner.cs
- ContextMenuAutomationPeer.cs
- BaseDataList.cs
- SqlCrossApplyToCrossJoin.cs
- BindingValueChangedEventArgs.cs
- CodeGroup.cs
- dataSvcMapFileLoader.cs
- Bookmark.cs
- ExpressionBuilderCollection.cs
- ByeOperationCD1AsyncResult.cs
- OracleParameterCollection.cs
- TextDecorations.cs
- BooleanFunctions.cs
- RolePrincipal.cs
- Axis.cs
- LongCountAggregationOperator.cs
- CacheRequest.cs
- ContextMarshalException.cs
- ServicePointManager.cs
- TextEditor.cs
- FlowLayoutSettings.cs
- SafeNativeMemoryHandle.cs
- TraceLevelStore.cs
- PagerSettings.cs
- ClientScriptManagerWrapper.cs
- SqlDataSourceCache.cs
- SimpleFieldTemplateUserControl.cs
- Query.cs
- DataGridViewAccessibleObject.cs
- WindowsToolbar.cs
- PenContext.cs
- UIElementHelper.cs
- TemplateBindingExtension.cs
- OracleNumber.cs
- SystemColors.cs
- PropertyGroupDescription.cs
- SID.cs
- HtmlInputCheckBox.cs
- Compiler.cs
- StreamInfo.cs
- XmlSchemas.cs
- StaticExtension.cs
- ListItemParagraph.cs
- ErrorFormatterPage.cs
- SecurityManager.cs
- BatchWriter.cs
- ProfileGroupSettingsCollection.cs
- ChannelHandler.cs
- WmlLinkAdapter.cs
- SynchronizationContext.cs
- X509SecurityToken.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- _BaseOverlappedAsyncResult.cs
- CircleHotSpot.cs
- FontSourceCollection.cs
- TwoPhaseCommit.cs
- PropertyCollection.cs
- ConnectionInterfaceCollection.cs
- AspNetHostingPermission.cs
- VisualTarget.cs
- WebPartActionVerb.cs
- DBAsyncResult.cs
- XamlFilter.cs
- path.cs
- EventLogger.cs
- figurelength.cs
- ResourceExpressionBuilder.cs
- XmlDeclaration.cs
- AsymmetricSignatureDeformatter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- HtmlForm.cs
- RemoteWebConfigurationHost.cs
- CodeValidator.cs
- XmlSigningNodeWriter.cs
- GeometryHitTestResult.cs
- AlternateView.cs
- DBSchemaRow.cs
- SymmetricSecurityProtocol.cs
- CharEnumerator.cs