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
- NotCondition.cs
- ConstraintCollection.cs
- ArgIterator.cs
- SimpleParser.cs
- RecognitionResult.cs
- JapaneseLunisolarCalendar.cs
- XpsS0ValidatingLoader.cs
- SqlDataSourceSelectingEventArgs.cs
- LongCountAggregationOperator.cs
- IntegerFacetDescriptionElement.cs
- BCLDebug.cs
- EncryptedType.cs
- EntityDataSourceWrapper.cs
- GenericParameterDataContract.cs
- EnumerableCollectionView.cs
- log.cs
- Rijndael.cs
- SerializationException.cs
- MsmqIntegrationInputMessage.cs
- EnumBuilder.cs
- RepeatBehaviorConverter.cs
- MaskDescriptors.cs
- InsufficientMemoryException.cs
- DictationGrammar.cs
- UniqueConstraint.cs
- MatrixConverter.cs
- OrderPreservingPipeliningSpoolingTask.cs
- Splitter.cs
- ImageSourceValueSerializer.cs
- ServicePointManagerElement.cs
- Validator.cs
- BamlTreeUpdater.cs
- Win32SafeHandles.cs
- ReflectionTypeLoadException.cs
- DocobjHost.cs
- PathData.cs
- UriParserTemplates.cs
- InlineObject.cs
- COM2ExtendedTypeConverter.cs
- ReadOnlyObservableCollection.cs
- DrawingContext.cs
- DateTimeSerializationSection.cs
- Style.cs
- COMException.cs
- EntityRecordInfo.cs
- CreateParams.cs
- SqlNodeAnnotation.cs
- MapPathBasedVirtualPathProvider.cs
- BinaryWriter.cs
- HasCopySemanticsAttribute.cs
- HwndKeyboardInputProvider.cs
- KnowledgeBase.cs
- HideDisabledControlAdapter.cs
- basecomparevalidator.cs
- TopClause.cs
- ObjectViewListener.cs
- LineServicesCallbacks.cs
- MbpInfo.cs
- SingleConverter.cs
- SchemaImporterExtension.cs
- _FixedSizeReader.cs
- PkcsMisc.cs
- ZipIOFileItemStream.cs
- TextParaLineResult.cs
- UriTemplateLiteralQueryValue.cs
- MenuItemStyle.cs
- OpenTypeLayout.cs
- PriorityQueue.cs
- ADConnectionHelper.cs
- UInt32Storage.cs
- InputBuffer.cs
- CompositeFontParser.cs
- PostBackTrigger.cs
- ReadOnlyAttribute.cs
- NavigationPropertyEmitter.cs
- TextTreeRootTextBlock.cs
- smtpconnection.cs
- contentDescriptor.cs
- LayoutEditorPart.cs
- RepeatInfo.cs
- LogExtent.cs
- CommonProperties.cs
- CustomPopupPlacement.cs
- PanelContainerDesigner.cs
- CommonDialog.cs
- XmlDocumentType.cs
- BindingExpressionUncommonField.cs
- MSHTMLHost.cs
- UpdateEventArgs.cs
- WindowsToolbar.cs
- _UncName.cs
- AvtEvent.cs
- DynamicEndpoint.cs
- TraceContextRecord.cs
- Main.cs
- DataSourceHelper.cs
- DataSourceCacheDurationConverter.cs
- MetadataHelper.cs
- NotFiniteNumberException.cs
- LocalBuilder.cs