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
- ActivityMarkupSerializationProvider.cs
- M3DUtil.cs
- TranslateTransform3D.cs
- Keywords.cs
- ImageFormat.cs
- XmlUtil.cs
- SecurityTokenTypes.cs
- ConvertersCollection.cs
- NameTable.cs
- RegionIterator.cs
- TabControl.cs
- SerializableAttribute.cs
- SerializationException.cs
- MetadataArtifactLoaderCompositeFile.cs
- DeviceContexts.cs
- SignedPkcs7.cs
- MsdtcClusterUtils.cs
- InvokeSchedule.cs
- InfiniteIntConverter.cs
- ResolvedKeyFrameEntry.cs
- StorageEntitySetMapping.cs
- PkcsMisc.cs
- EdmRelationshipRoleAttribute.cs
- CriticalExceptions.cs
- _CacheStreams.cs
- RelatedCurrencyManager.cs
- WeakReference.cs
- PersonalizationStateInfoCollection.cs
- TreeWalkHelper.cs
- TextEffect.cs
- TextTreePropertyUndoUnit.cs
- MiniCustomAttributeInfo.cs
- WindowsPen.cs
- OptimizerPatterns.cs
- XmlSchemaExternal.cs
- InputScopeAttribute.cs
- XmlCountingReader.cs
- DataViewSettingCollection.cs
- SamlDoNotCacheCondition.cs
- Decimal.cs
- ContentElement.cs
- TransformPatternIdentifiers.cs
- JavaScriptObjectDeserializer.cs
- ExeContext.cs
- BuildProvider.cs
- WorkflowInstanceQuery.cs
- TakeOrSkipQueryOperator.cs
- RoutedPropertyChangedEventArgs.cs
- MouseBinding.cs
- ComboBox.cs
- EventLogTraceListener.cs
- FormViewPageEventArgs.cs
- MemberPathMap.cs
- WindowsFormsHostAutomationPeer.cs
- EnvelopedPkcs7.cs
- XhtmlBasicPhoneCallAdapter.cs
- AddInAttribute.cs
- SettingsPropertyNotFoundException.cs
- FixedSOMElement.cs
- RelationshipSet.cs
- ExitEventArgs.cs
- DesignObjectWrapper.cs
- ProtocolsConfigurationEntry.cs
- TableLayoutCellPaintEventArgs.cs
- SelectorItemAutomationPeer.cs
- QilStrConcatenator.cs
- FormConverter.cs
- WebPartDesigner.cs
- SystemBrushes.cs
- EntityWrapper.cs
- AppDomainGrammarProxy.cs
- AliasedExpr.cs
- NativeMethods.cs
- WebControlsSection.cs
- MenuItem.cs
- SerializationStore.cs
- RegexReplacement.cs
- ImageAttributes.cs
- HScrollBar.cs
- ResourceReferenceKeyNotFoundException.cs
- ColorAnimation.cs
- ProfileElement.cs
- BitmapEffectCollection.cs
- InvalidWMPVersionException.cs
- SiteMapNodeItem.cs
- DuplicateWaitObjectException.cs
- ToolStripDropDown.cs
- ReturnValue.cs
- ErrorView.xaml.cs
- Control.cs
- SByte.cs
- ApplicationContext.cs
- UInt64Storage.cs
- SQLDecimalStorage.cs
- InputScope.cs
- CodeDelegateInvokeExpression.cs
- GroupItemAutomationPeer.cs
- WebProxyScriptElement.cs
- WrappingXamlSchemaContext.cs
- TextSyndicationContent.cs