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
- ServiceReference.cs
- AutoScrollHelper.cs
- RequestCache.cs
- CfgArc.cs
- PagesSection.cs
- TreeView.cs
- XmlSchemaIdentityConstraint.cs
- CheckedPointers.cs
- ImageList.cs
- WindowsSecurityTokenAuthenticator.cs
- DisposableCollectionWrapper.cs
- DataContractSerializerSection.cs
- ResourceType.cs
- TaskSchedulerException.cs
- Model3DGroup.cs
- XmlSchemaInclude.cs
- PenThreadPool.cs
- DatatypeImplementation.cs
- bindurihelper.cs
- SafeFileMappingHandle.cs
- ListBindingHelper.cs
- DefaultTextStore.cs
- ControlBuilder.cs
- TabControlEvent.cs
- TraceHwndHost.cs
- DiagnosticTrace.cs
- DesignerTransactionCloseEvent.cs
- Crypto.cs
- MenuEventArgs.cs
- MobileListItem.cs
- StorageMappingItemLoader.cs
- AsymmetricAlgorithm.cs
- SchemaObjectWriter.cs
- SqlClientFactory.cs
- SafeCloseHandleCritical.cs
- RIPEMD160Managed.cs
- SettingsPropertyNotFoundException.cs
- ResourceWriter.cs
- PointValueSerializer.cs
- ThrowOnMultipleAssignment.cs
- HwndTarget.cs
- WebBrowsableAttribute.cs
- ToolboxItem.cs
- TypeInitializationException.cs
- HideDisabledControlAdapter.cs
- ExtensionSurface.cs
- DoubleKeyFrameCollection.cs
- MbpInfo.cs
- SafePointer.cs
- DesignerDataView.cs
- GridViewCommandEventArgs.cs
- NativeCompoundFileAPIs.cs
- AssemblyResourceLoader.cs
- CodeTypeReferenceExpression.cs
- XmlAnyElementAttribute.cs
- ObjectConverter.cs
- ElasticEase.cs
- FieldDescriptor.cs
- AssemblyCache.cs
- TransformationRules.cs
- WorkflowWebService.cs
- TypedDataSourceCodeGenerator.cs
- PtsHost.cs
- ListViewGroup.cs
- DataGridViewCheckBoxColumn.cs
- RowCache.cs
- ToolStripSystemRenderer.cs
- HiddenFieldPageStatePersister.cs
- X509CertificateTrustedIssuerElement.cs
- SQLSingle.cs
- MetabaseSettings.cs
- ClientSideQueueItem.cs
- BindingSourceDesigner.cs
- UIHelper.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- SqlBulkCopyColumnMappingCollection.cs
- SQLStringStorage.cs
- _AuthenticationState.cs
- wmiprovider.cs
- ControlIdConverter.cs
- CFStream.cs
- InOutArgumentConverter.cs
- GridViewColumnCollection.cs
- ApplicationId.cs
- CellParaClient.cs
- RTTrackingProfile.cs
- DocumentAutomationPeer.cs
- SHA1Managed.cs
- DesignSurface.cs
- EntryWrittenEventArgs.cs
- LogPolicy.cs
- MultipartIdentifier.cs
- DefaultSection.cs
- UserValidatedEventArgs.cs
- ProfileSettingsCollection.cs
- RuntimeHandles.cs
- Vector3dCollection.cs
- DataServiceRequest.cs
- MailWebEventProvider.cs
- OleDbRowUpdatingEvent.cs