Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //------------- *** 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
- InputGestureCollection.cs
- DataGridViewCellParsingEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- RegexCaptureCollection.cs
- DispatcherHooks.cs
- AmbientValueAttribute.cs
- DefaultValueAttribute.cs
- SettingsProviderCollection.cs
- ParameterBuilder.cs
- TranslateTransform3D.cs
- PartitionerQueryOperator.cs
- RecipientInfo.cs
- ProfessionalColors.cs
- SemanticResultValue.cs
- DecimalAnimationUsingKeyFrames.cs
- DesignerActionList.cs
- Listen.cs
- METAHEADER.cs
- StickyNote.cs
- Stackframe.cs
- Geometry3D.cs
- JsonReaderDelegator.cs
- COM2TypeInfoProcessor.cs
- JsonReader.cs
- RoutedEventHandlerInfo.cs
- MonikerBuilder.cs
- ObjectItemCollection.cs
- StateItem.cs
- DataControlLinkButton.cs
- ProjectedSlot.cs
- figurelengthconverter.cs
- ADMembershipUser.cs
- SortedDictionary.cs
- SessionSwitchEventArgs.cs
- ArrayWithOffset.cs
- SequentialOutput.cs
- DataSourceIDConverter.cs
- FixedDocumentSequencePaginator.cs
- DataControlImageButton.cs
- bidPrivateBase.cs
- RegisteredHiddenField.cs
- GetPageCompletedEventArgs.cs
- QueryOpcode.cs
- VarInfo.cs
- StylusButtonEventArgs.cs
- ArraySubsetEnumerator.cs
- PersonalizableTypeEntry.cs
- metadatamappinghashervisitor.cs
- SecurityManager.cs
- Int64Converter.cs
- MapPathBasedVirtualPathProvider.cs
- SoapAttributeAttribute.cs
- safesecurityhelperavalon.cs
- BitSet.cs
- InplaceBitmapMetadataWriter.cs
- RangeContentEnumerator.cs
- BasicCellRelation.cs
- BufferModesCollection.cs
- TrackingProfileDeserializationException.cs
- BasicCellRelation.cs
- DummyDataSource.cs
- EventlogProvider.cs
- XsdDuration.cs
- TaskForm.cs
- KeyInterop.cs
- Parameter.cs
- LoginView.cs
- XmlNamespaceDeclarationsAttribute.cs
- ImageBrush.cs
- ItemsControl.cs
- StickyNoteHelper.cs
- Function.cs
- ContentHostHelper.cs
- SimplePropertyEntry.cs
- RsaSecurityTokenAuthenticator.cs
- MenuScrollingVisibilityConverter.cs
- MultipleViewPattern.cs
- Helper.cs
- WriterOutput.cs
- NominalTypeEliminator.cs
- MergeFailedEvent.cs
- XmlSchemaImporter.cs
- ErrorWrapper.cs
- MSAAEventDispatcher.cs
- FontEditor.cs
- DesignerVerbCollection.cs
- ACL.cs
- ReverseQueryOperator.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CircleEase.cs
- StylusPoint.cs
- ListViewGroupConverter.cs
- CollectionContainer.cs
- NotifyCollectionChangedEventArgs.cs
- WeakReference.cs
- BaseComponentEditor.cs
- WebBrowserNavigatedEventHandler.cs
- XPathCompileException.cs
- Process.cs
- XPathException.cs