Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / IO / Zip / ZipFileInfoCollection.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Typography.cs
- FormViewInsertEventArgs.cs
- ParameterToken.cs
- SimpleWebHandlerParser.cs
- ConfigPathUtility.cs
- SafeNativeMethods.cs
- TerminateDesigner.cs
- mansign.cs
- PipelineComponent.cs
- WebPartDescriptionCollection.cs
- WebBrowserHelper.cs
- TimeSpanStorage.cs
- QuaternionAnimation.cs
- Scene3D.cs
- XPathAncestorIterator.cs
- CompoundFileStorageReference.cs
- TableLayoutStyleCollection.cs
- wgx_sdk_version.cs
- XmlWrappingReader.cs
- XmlSchemaAppInfo.cs
- DataConnectionHelper.cs
- ReachFixedPageSerializer.cs
- ArgumentDirectionHelper.cs
- ProfileProvider.cs
- PageThemeBuildProvider.cs
- ViewStateModeByIdAttribute.cs
- WebPartMenu.cs
- GradientBrush.cs
- LayoutEvent.cs
- BookmarkOptionsHelper.cs
- DateTimeFormatInfo.cs
- _SslState.cs
- ScriptMethodAttribute.cs
- DataGridViewEditingControlShowingEventArgs.cs
- KeyToListMap.cs
- StateRuntime.cs
- DetailsViewPageEventArgs.cs
- AccessKeyManager.cs
- Ipv6Element.cs
- HostUtils.cs
- ChangeProcessor.cs
- SymbolEqualComparer.cs
- MarkupCompiler.cs
- ListMarkerLine.cs
- EntityCommandCompilationException.cs
- Context.cs
- BitmapEffectGroup.cs
- TerminatorSinks.cs
- HashUtility.cs
- PageCatalogPart.cs
- TransformerTypeCollection.cs
- PeerIPHelper.cs
- MultiBindingExpression.cs
- WebControlAdapter.cs
- FlowDocumentView.cs
- BigInt.cs
- SchemaLookupTable.cs
- ChannelSinkStacks.cs
- Attachment.cs
- BindingSource.cs
- UnmanagedHandle.cs
- PeerCollaborationPermission.cs
- mediaeventargs.cs
- SessionStateSection.cs
- GenericPrincipal.cs
- ScriptReference.cs
- Assembly.cs
- TextEditorCharacters.cs
- BindingUtils.cs
- MissingMemberException.cs
- WebPartVerb.cs
- ScaleTransform.cs
- TimersDescriptionAttribute.cs
- AnnotationHelper.cs
- InvalidOleVariantTypeException.cs
- DebugInfoExpression.cs
- RichTextBoxConstants.cs
- COM2EnumConverter.cs
- LinqDataSourceView.cs
- WebZone.cs
- SqlCommandBuilder.cs
- Ray3DHitTestResult.cs
- DynamicRenderer.cs
- baseaxisquery.cs
- ConsumerConnectionPoint.cs
- StatusBarItem.cs
- CellParagraph.cs
- HandleExceptionArgs.cs
- SqlMethods.cs
- EmptyReadOnlyDictionaryInternal.cs
- SmtpNegotiateAuthenticationModule.cs
- COM2Enum.cs
- QilVisitor.cs
- AnnotationAuthorChangedEventArgs.cs
- TcpTransportBindingElement.cs
- CodeGotoStatement.cs
- Decimal.cs
- MILUtilities.cs
- ToolStripActionList.cs
- WindowsPrincipal.cs