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
- AppDomain.cs
- HttpListener.cs
- DayRenderEvent.cs
- TimelineGroup.cs
- FacetEnabledSchemaElement.cs
- TextElementEnumerator.cs
- BaseEntityWrapper.cs
- SoapEnumAttribute.cs
- HttpProfileGroupBase.cs
- MessageQuerySet.cs
- WindowsToolbarAsMenu.cs
- InstancePersistenceContext.cs
- SparseMemoryStream.cs
- CompilerTypeWithParams.cs
- Mappings.cs
- clipboard.cs
- AuthenticationServiceManager.cs
- WinFormsSecurity.cs
- Control.cs
- SymmetricKeyWrap.cs
- SecurityKeyIdentifierClause.cs
- ModelItemCollectionImpl.cs
- SingleAnimation.cs
- WebPartConnectVerb.cs
- OracleBinary.cs
- ZipPackage.cs
- EntityContainer.cs
- SqlSupersetValidator.cs
- SpellCheck.cs
- WebPartConnectVerb.cs
- DataGridItemCollection.cs
- TableItemStyle.cs
- BitmapEffectDrawingContent.cs
- ConditionBrowserDialog.cs
- BinaryMessageFormatter.cs
- ButtonChrome.cs
- TakeQueryOptionExpression.cs
- BulletChrome.cs
- TextTabProperties.cs
- RijndaelManaged.cs
- DataGridViewMethods.cs
- OdbcHandle.cs
- SqlBulkCopyColumnMappingCollection.cs
- TypefaceMap.cs
- Floater.cs
- PlaceHolder.cs
- XmlParserContext.cs
- ContractBase.cs
- HttpModuleCollection.cs
- TimeSpanStorage.cs
- NumberFormatter.cs
- SmtpReplyReader.cs
- TemplateField.cs
- InputBuffer.cs
- DefaultPrintController.cs
- IncrementalCompileAnalyzer.cs
- ReflectPropertyDescriptor.cs
- ConnectionStringSettingsCollection.cs
- DataServiceRequestException.cs
- MatrixUtil.cs
- _PooledStream.cs
- ACL.cs
- SafePipeHandle.cs
- SqlServer2KCompatibilityAnnotation.cs
- CurrentChangingEventManager.cs
- NativeMethods.cs
- XmlSchemaParticle.cs
- _RegBlobWebProxyDataBuilder.cs
- LayoutManager.cs
- PowerStatus.cs
- ReadOnlyDictionary.cs
- NoClickablePointException.cs
- KnownBoxes.cs
- MetadataItemEmitter.cs
- ShapingWorkspace.cs
- RouteTable.cs
- TemplateInstanceAttribute.cs
- SafeFileMapViewHandle.cs
- SystemColors.cs
- GeneratedView.cs
- PermissionSetEnumerator.cs
- NetDispatcherFaultException.cs
- UInt16Storage.cs
- WebServiceClientProxyGenerator.cs
- BitmapEffectDrawing.cs
- SimpleHandlerFactory.cs
- SqlVisitor.cs
- XLinq.cs
- EpmContentDeSerializerBase.cs
- WarningException.cs
- XsdDateTime.cs
- ProgressiveCrcCalculatingStream.cs
- RawTextInputReport.cs
- XmlExtensionFunction.cs
- EntityClassGenerator.cs
- TemplateControl.cs
- DataSourceSelectArguments.cs
- PatternMatcher.cs
- CharacterBuffer.cs
- InvalidateEvent.cs