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
- ParenthesizePropertyNameAttribute.cs
- RegexGroupCollection.cs
- QueuePathDialog.cs
- DataRowExtensions.cs
- HebrewCalendar.cs
- MonthChangedEventArgs.cs
- BitmapData.cs
- WebPartMinimizeVerb.cs
- RuleValidation.cs
- TimeSpanValidatorAttribute.cs
- ObjectConverter.cs
- EntryWrittenEventArgs.cs
- SHA512.cs
- SqlServices.cs
- PassportPrincipal.cs
- AutoSizeToolBoxItem.cs
- ActivityDesignerLayoutSerializers.cs
- PeerNameRecord.cs
- JumpItem.cs
- AddInContractAttribute.cs
- InputLanguage.cs
- FixUpCollection.cs
- InputLanguage.cs
- MetaModel.cs
- ComplusEndpointConfigContainer.cs
- CorrelationTokenTypeConvertor.cs
- DesignerVerbCollection.cs
- EdmProviderManifest.cs
- HttpAsyncResult.cs
- MDIClient.cs
- DesignBindingPicker.cs
- SamlAuthorizationDecisionStatement.cs
- HttpListenerRequestUriBuilder.cs
- EnlistmentTraceIdentifier.cs
- TagPrefixInfo.cs
- RequestCacheValidator.cs
- HttpListenerContext.cs
- JsonWriter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- BinaryWriter.cs
- NetTcpBinding.cs
- SafeCertificateStore.cs
- Matrix3DStack.cs
- BatchServiceHost.cs
- SchemaSetCompiler.cs
- MsmqDiagnostics.cs
- InputMethodStateTypeInfo.cs
- User.cs
- WebPartChrome.cs
- CodeExporter.cs
- ScalarOps.cs
- RawAppCommandInputReport.cs
- EncoderBestFitFallback.cs
- WinFormsUtils.cs
- SqlDataReader.cs
- Authorization.cs
- PeerCollaborationPermission.cs
- XPathDocumentBuilder.cs
- CharacterShapingProperties.cs
- ImageClickEventArgs.cs
- StylusButtonCollection.cs
- DelegatingConfigHost.cs
- AngleUtil.cs
- Vertex.cs
- CatalogPartChrome.cs
- ProcessHostFactoryHelper.cs
- CacheOutputQuery.cs
- ContainerUtilities.cs
- DataGridCell.cs
- ReadOnlyAttribute.cs
- FixedSOMSemanticBox.cs
- SystemEvents.cs
- TrustExchangeException.cs
- CapabilitiesAssignment.cs
- CodeGenerator.cs
- DocumentViewerBase.cs
- IisTraceListener.cs
- DBSqlParser.cs
- SqlFunctionAttribute.cs
- ClusterSafeNativeMethods.cs
- SlotInfo.cs
- TextEmbeddedObject.cs
- WindowPatternIdentifiers.cs
- DiagnosticTrace.cs
- BitArray.cs
- WebServiceData.cs
- ProfessionalColors.cs
- CompilerGeneratedAttribute.cs
- ClientFactory.cs
- XmlAnyElementAttribute.cs
- TextLineResult.cs
- ChildrenQuery.cs
- FileLevelControlBuilderAttribute.cs
- PathGeometry.cs
- MessageDispatch.cs
- UnsafeNativeMethods.cs
- CompilerGeneratedAttribute.cs
- propertyentry.cs
- ValidationHelpers.cs
- ResponseBodyWriter.cs