Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Brush.cs
- OleDbEnumerator.cs
- XPathAncestorQuery.cs
- DocumentXmlWriter.cs
- PipeSecurity.cs
- PropertyKey.cs
- TextElementCollection.cs
- PropertyTabAttribute.cs
- DbConnectionPool.cs
- OverflowException.cs
- SchemaAttDef.cs
- SystemDiagnosticsSection.cs
- OracleMonthSpan.cs
- MergeExecutor.cs
- assemblycache.cs
- UpdateTranslator.cs
- WebContext.cs
- XmlSchemaAnnotated.cs
- CompoundFileIOPermission.cs
- WindowsListViewGroupHelper.cs
- ZoneLinkButton.cs
- PerformanceCounterManager.cs
- PrintEvent.cs
- PersonalizationStateInfo.cs
- PageAdapter.cs
- OleDbParameterCollection.cs
- XmlNamespaceMappingCollection.cs
- __ConsoleStream.cs
- TextEffectCollection.cs
- AvTraceFormat.cs
- BatchParser.cs
- GeneralTransform.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ImageBrush.cs
- DomainLiteralReader.cs
- RelatedEnd.cs
- GifBitmapEncoder.cs
- RadioButton.cs
- Rectangle.cs
- ButtonFieldBase.cs
- DataRowChangeEvent.cs
- AssemblyCache.cs
- MailDefinitionBodyFileNameEditor.cs
- WebBrowserPermission.cs
- NameSpaceEvent.cs
- DrawingAttributes.cs
- RequestBringIntoViewEventArgs.cs
- NavigationEventArgs.cs
- AttachmentCollection.cs
- elementinformation.cs
- RelationshipNavigation.cs
- WebResourceAttribute.cs
- TransportSecurityHelpers.cs
- ApplicationProxyInternal.cs
- RenamedEventArgs.cs
- ProfileProvider.cs
- ProcessProtocolHandler.cs
- XsltInput.cs
- TagMapCollection.cs
- TextTreePropertyUndoUnit.cs
- GiveFeedbackEvent.cs
- ProtectedConfigurationSection.cs
- UniqueIdentifierService.cs
- XAMLParseException.cs
- FilterQuery.cs
- EncryptedReference.cs
- CodeDirectionExpression.cs
- DataGridDesigner.cs
- DesignerActionUI.cs
- EmptyEnumerator.cs
- CodeTypeParameterCollection.cs
- Renderer.cs
- XmlWrappingReader.cs
- RewritingProcessor.cs
- TextRangeBase.cs
- SqlInfoMessageEvent.cs
- TcpHostedTransportConfiguration.cs
- BamlTreeNode.cs
- ResourceExpressionBuilder.cs
- PersonalizationProvider.cs
- DbUpdateCommandTree.cs
- NamespaceQuery.cs
- BufferCache.cs
- RectangleConverter.cs
- TopClause.cs
- InfiniteTimeSpanConverter.cs
- ControlUtil.cs
- DateTimeValueSerializerContext.cs
- CatalogPart.cs
- AmbientProperties.cs
- UInt64Storage.cs
- BamlLocalizabilityResolver.cs
- GradientStop.cs
- Size.cs
- DependencyObject.cs
- DataBindingExpressionBuilder.cs
- ToolStripMenuItemCodeDomSerializer.cs
- XPathExpr.cs
- ObjectRef.cs
- DescendantOverDescendantQuery.cs