Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UnsafeNativeMethods.cs
- ProtectedConfigurationProviderCollection.cs
- UdpTransportSettings.cs
- TextBoxRenderer.cs
- MimeMultiPart.cs
- ZipIOLocalFileHeader.cs
- glyphs.cs
- AlternateViewCollection.cs
- Win32MouseDevice.cs
- EntityCommandExecutionException.cs
- JsonGlobals.cs
- LinearGradientBrush.cs
- DoubleCollectionConverter.cs
- RuleElement.cs
- DataServiceResponse.cs
- CompensatableSequenceActivity.cs
- UndirectedGraph.cs
- ProfileModule.cs
- RewritingSimplifier.cs
- CodeTypeReferenceCollection.cs
- ReflectionServiceProvider.cs
- EntityViewContainer.cs
- DataException.cs
- MethodExpr.cs
- SHA512Managed.cs
- Grant.cs
- FileRecordSequenceHelper.cs
- Int64Converter.cs
- __Filters.cs
- Help.cs
- _UriSyntax.cs
- SafeUserTokenHandle.cs
- Object.cs
- TimeZoneNotFoundException.cs
- Registry.cs
- RoleGroup.cs
- EncoderFallback.cs
- DataTable.cs
- DataServiceQuery.cs
- AbandonedMutexException.cs
- XmlSignatureManifest.cs
- StaticExtension.cs
- CommentEmitter.cs
- AssemblyCollection.cs
- documentsequencetextview.cs
- TreeViewAutomationPeer.cs
- SelectionItemPattern.cs
- CollaborationHelperFunctions.cs
- WebPartDescriptionCollection.cs
- ParserExtension.cs
- ExpressionNormalizer.cs
- ActivityDesignerResources.cs
- dsa.cs
- GenericRootAutomationPeer.cs
- AnnotationAuthorChangedEventArgs.cs
- CustomAssemblyResolver.cs
- ExecutionEngineException.cs
- TreeNodeStyle.cs
- PathSegmentCollection.cs
- MouseEventArgs.cs
- SerialPinChanges.cs
- EntityStoreSchemaFilterEntry.cs
- WorkflowEnvironment.cs
- InstanceView.cs
- BindingNavigatorDesigner.cs
- SettingsPropertyNotFoundException.cs
- ToolStripStatusLabel.cs
- CachingHintValidation.cs
- HttpDebugHandler.cs
- LightweightEntityWrapper.cs
- PointValueSerializer.cs
- TokenDescriptor.cs
- ApplicationSecurityInfo.cs
- LinqToSqlWrapper.cs
- HttpListenerContext.cs
- WindowsBrush.cs
- BlobPersonalizationState.cs
- PreparingEnlistment.cs
- RightsController.cs
- ImageCodecInfo.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- AdCreatedEventArgs.cs
- AxParameterData.cs
- SmtpNegotiateAuthenticationModule.cs
- ValidationErrorEventArgs.cs
- FixedSOMElement.cs
- WebPartManagerInternals.cs
- MobileListItemCollection.cs
- EntitySet.cs
- MediaElementAutomationPeer.cs
- precedingquery.cs
- SingleSelectRootGridEntry.cs
- RenderCapability.cs
- SignedInfo.cs
- ListItemConverter.cs
- AnnotationObservableCollection.cs
- AudioFormatConverter.cs
- StringSorter.cs
- FormatConvertedBitmap.cs
- ComponentCollection.cs