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
- InstanceDescriptor.cs
- BinaryUtilClasses.cs
- OutputScopeManager.cs
- ExecutorLocksHeldException.cs
- CompositeTypefaceMetrics.cs
- TemplatePartAttribute.cs
- SoapSchemaMember.cs
- ScriptControl.cs
- isolationinterop.cs
- PageCatalogPart.cs
- QilChoice.cs
- RSAPKCS1SignatureFormatter.cs
- PropertiesTab.cs
- TypeNameConverter.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataGridColumnCollection.cs
- InputReport.cs
- SystemGatewayIPAddressInformation.cs
- DesignerHost.cs
- GeometryHitTestResult.cs
- RawAppCommandInputReport.cs
- GridViewColumnHeaderAutomationPeer.cs
- coordinator.cs
- OutputCacheModule.cs
- ListBindingConverter.cs
- Publisher.cs
- DecimalConverter.cs
- WebPartConnectionsCancelVerb.cs
- SafeNativeMethods.cs
- AnnotationResource.cs
- XmlQueryOutput.cs
- DockingAttribute.cs
- MarshalByRefObject.cs
- PrintingPermission.cs
- MergeFilterQuery.cs
- XsltArgumentList.cs
- CacheModeConverter.cs
- PeerObject.cs
- CheckedPointers.cs
- TextView.cs
- SessionEndedEventArgs.cs
- DocumentsTrace.cs
- ItemAutomationPeer.cs
- X509Utils.cs
- CodeCompileUnit.cs
- PropertyStore.cs
- Pen.cs
- MultiPropertyDescriptorGridEntry.cs
- Pointer.cs
- SoapExtension.cs
- QilStrConcat.cs
- InputScopeConverter.cs
- NameSpaceEvent.cs
- StylusCaptureWithinProperty.cs
- OleDbParameter.cs
- BidPrivateBase.cs
- safex509handles.cs
- ErrorStyle.cs
- GatewayDefinition.cs
- DocumentSequence.cs
- HiddenFieldDesigner.cs
- StringFunctions.cs
- ComponentResourceKeyConverter.cs
- MessageSmuggler.cs
- DeploymentSectionCache.cs
- AuthenticationService.cs
- RegexStringValidatorAttribute.cs
- PropertyIdentifier.cs
- TaskExtensions.cs
- Operand.cs
- Win32PrintDialog.cs
- CompositeActivityCodeGenerator.cs
- DeleteIndexBinder.cs
- ContextMenuAutomationPeer.cs
- Function.cs
- SrgsRulesCollection.cs
- SqlCachedBuffer.cs
- HtmlUtf8RawTextWriter.cs
- ContextMenuService.cs
- FormCollection.cs
- PageHandlerFactory.cs
- SafeRightsManagementHandle.cs
- RelatedCurrencyManager.cs
- DiscoveryClientElement.cs
- X509Certificate.cs
- DateTimeOffsetStorage.cs
- RangeValuePattern.cs
- TypeDelegator.cs
- HashHelper.cs
- SymmetricKeyWrap.cs
- SettingsPropertyValueCollection.cs
- BuilderInfo.cs
- _ConnectOverlappedAsyncResult.cs
- FixedPageStructure.cs
- BuildDependencySet.cs
- XmlNodeComparer.cs
- Subtree.cs
- XmlLanguageConverter.cs
- FilteredXmlReader.cs
- ArgumentException.cs