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
- RoleExceptions.cs
- ColorKeyFrameCollection.cs
- OutputCacheSettingsSection.cs
- HyperLinkDesigner.cs
- XmlEntity.cs
- Int32Rect.cs
- ExpressionConverter.cs
- EndpointFilterProvider.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- SelectionPatternIdentifiers.cs
- StringSorter.cs
- CookielessData.cs
- AggregateException.cs
- DataTableTypeConverter.cs
- WindowsAuthenticationEventArgs.cs
- XPathItem.cs
- LoadedOrUnloadedOperation.cs
- CollectionConverter.cs
- PerfService.cs
- PermissionAttributes.cs
- SecurityKeyUsage.cs
- DbMetaDataFactory.cs
- CatalogPart.cs
- CharUnicodeInfo.cs
- SqlFileStream.cs
- WebConfigurationManager.cs
- Hashtable.cs
- DataBindingCollection.cs
- StylusTip.cs
- StyleConverter.cs
- ServicePointManager.cs
- ActiveDocumentEvent.cs
- DodSequenceMerge.cs
- SystemTcpStatistics.cs
- SqlFunctions.cs
- ObjectConverter.cs
- Light.cs
- AudioSignalProblemOccurredEventArgs.cs
- MsmqBindingElementBase.cs
- SqlReferenceCollection.cs
- DataGridViewComboBoxColumnDesigner.cs
- Misc.cs
- XmlCDATASection.cs
- RegexWorker.cs
- ParallelEnumerable.cs
- GlobalAllocSafeHandle.cs
- EditorPartCollection.cs
- HuffmanTree.cs
- Point3D.cs
- AttributeEmitter.cs
- RegistryPermission.cs
- NumberFormatter.cs
- HyperLinkField.cs
- DeclaredTypeValidator.cs
- VBIdentifierTrimConverter.cs
- PostBackTrigger.cs
- GeometryCollection.cs
- PathTooLongException.cs
- BrowsableAttribute.cs
- IIS7UserPrincipal.cs
- XmlWellformedWriter.cs
- Int16KeyFrameCollection.cs
- ReturnEventArgs.cs
- HostingPreferredMapPath.cs
- TransformProviderWrapper.cs
- GuidTagList.cs
- DataGridAddNewRow.cs
- XPathItem.cs
- ToolStripDropDownClosingEventArgs.cs
- ThreadPool.cs
- FieldNameLookup.cs
- FileSystemWatcher.cs
- CollectionBase.cs
- ToolStripPanelDesigner.cs
- ButtonFieldBase.cs
- EditorZoneBase.cs
- SQLMoney.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- SmtpException.cs
- ButtonAutomationPeer.cs
- EntityDataSourceEntityTypeFilterItem.cs
- TemplateEditingService.cs
- StrongNameSignatureInformation.cs
- IISUnsafeMethods.cs
- ServiceHostFactory.cs
- BitConverter.cs
- EventLogRecord.cs
- StatusStrip.cs
- DefaultBindingPropertyAttribute.cs
- ListItemCollection.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DesignTable.cs
- AmbientProperties.cs
- MenuItem.cs
- XmlSchemaComplexType.cs
- Screen.cs
- HttpHandlerAction.cs
- Metafile.cs
- UniqueIdentifierService.cs
- HttpConfigurationSystem.cs