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
- CultureInfoConverter.cs
- AsymmetricSignatureDeformatter.cs
- Serializer.cs
- TileBrush.cs
- xmlNames.cs
- EnumerableRowCollection.cs
- SafeNativeMethodsCLR.cs
- SyndicationSerializer.cs
- Stackframe.cs
- ActivityBindForm.cs
- CqlQuery.cs
- DataGrid.cs
- UseLicense.cs
- BinaryMethodMessage.cs
- RbTree.cs
- GridItemCollection.cs
- PersonalizationState.cs
- OpacityConverter.cs
- ToolCreatedEventArgs.cs
- FormatterConverter.cs
- ClientSettingsProvider.cs
- AssemblyResolver.cs
- UpDownEvent.cs
- ExtensionFile.cs
- DataSpaceManager.cs
- SByteConverter.cs
- FragmentQueryKB.cs
- MultiAsyncResult.cs
- TemplateBamlTreeBuilder.cs
- PriorityChain.cs
- NamedPipeProcessProtocolHandler.cs
- DecoderNLS.cs
- EncodingInfo.cs
- ImageBrush.cs
- FormsAuthentication.cs
- DrawListViewColumnHeaderEventArgs.cs
- LinqDataSourceDisposeEventArgs.cs
- UIElement3D.cs
- Trigger.cs
- FieldAccessException.cs
- WebBrowserEvent.cs
- ContentDisposition.cs
- SchemaNotation.cs
- CollectionType.cs
- BaseTemplateParser.cs
- AuthStoreRoleProvider.cs
- PriorityBinding.cs
- PartManifestEntry.cs
- SmiRequestExecutor.cs
- TextBoxBase.cs
- LayoutEngine.cs
- DataViewListener.cs
- FieldDescriptor.cs
- DataGridViewColumnDesigner.cs
- DetailsView.cs
- RemoteWebConfigurationHostStream.cs
- FactoryGenerator.cs
- MailMessage.cs
- HtmlProps.cs
- DataGridViewButtonColumn.cs
- XmlChildNodes.cs
- XPathParser.cs
- FullTrustAssembly.cs
- HttpRawResponse.cs
- SecurityKeyUsage.cs
- SecurityPolicySection.cs
- EditorBrowsableAttribute.cs
- CrossSiteScriptingValidation.cs
- OutputCacheSettingsSection.cs
- AttachmentCollection.cs
- ExtractedStateEntry.cs
- RSAPKCS1SignatureFormatter.cs
- EntityDataSourceQueryBuilder.cs
- PublishLicense.cs
- RewritingPass.cs
- RequestNavigateEventArgs.cs
- StylusButtonCollection.cs
- TypeHelpers.cs
- RouteTable.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataBindingCollectionEditor.cs
- MetabaseSettings.cs
- PolygonHotSpot.cs
- GetCryptoTransformRequest.cs
- FixedSOMSemanticBox.cs
- DataGridPagerStyle.cs
- ListViewGroupItemCollection.cs
- MetadataAssemblyHelper.cs
- DocumentOrderQuery.cs
- IdentityModelStringsVersion1.cs
- HelpEvent.cs
- Matrix3D.cs
- SmiEventSink_DeferedProcessing.cs
- ValueUnavailableException.cs
- ConfigurationSection.cs
- ServiceMemoryGates.cs
- WindowsAuthenticationModule.cs
- _SafeNetHandles.cs
- Simplifier.cs
- ConditionalAttribute.cs