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
- ByteAnimationUsingKeyFrames.cs
- DocumentGridContextMenu.cs
- GlobalProxySelection.cs
- DbConnectionOptions.cs
- TypeSystemProvider.cs
- ColorConvertedBitmap.cs
- URLAttribute.cs
- WorkflowWebService.cs
- SrgsRuleRef.cs
- ValidationSummary.cs
- ProfileSettingsCollection.cs
- FrameDimension.cs
- SocketStream.cs
- HttpDictionary.cs
- TableRowGroup.cs
- RegexStringValidator.cs
- NamedPipeHostedTransportConfiguration.cs
- InputLanguageManager.cs
- SendActivityEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- UriExt.cs
- MediaElement.cs
- ToolBarButtonClickEvent.cs
- DynamicResourceExtension.cs
- HttpModuleAction.cs
- RowCache.cs
- FrameworkContentElement.cs
- HighlightComponent.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ExtensibleClassFactory.cs
- SchemaImporterExtensionElementCollection.cs
- TableRow.cs
- DesignTimeDataBinding.cs
- CheckoutException.cs
- EnlistmentTraceIdentifier.cs
- DropShadowBitmapEffect.cs
- TraceLevelStore.cs
- Font.cs
- TraceUtils.cs
- DataGridViewRowCancelEventArgs.cs
- UserControlAutomationPeer.cs
- QueueNameHelper.cs
- StylusPointProperties.cs
- PackageRelationship.cs
- EdgeModeValidation.cs
- COM2PictureConverter.cs
- GlobalItem.cs
- ExternalFile.cs
- DBCommandBuilder.cs
- SecurityUtils.cs
- ObjectStateEntry.cs
- VectorConverter.cs
- StructuralType.cs
- WebBrowserBase.cs
- ProtocolsConfigurationHandler.cs
- QueryOperationResponseOfT.cs
- CalendarDateRangeChangingEventArgs.cs
- HttpRequestCacheValidator.cs
- MdImport.cs
- TraceInternal.cs
- HandleCollector.cs
- Panel.cs
- PublisherMembershipCondition.cs
- StylusOverProperty.cs
- ExpandCollapsePattern.cs
- ValidationErrorEventArgs.cs
- EditBehavior.cs
- HttpGetProtocolImporter.cs
- SQLMembershipProvider.cs
- SmtpNegotiateAuthenticationModule.cs
- FlowLayoutSettings.cs
- PermissionRequestEvidence.cs
- ELinqQueryState.cs
- DbException.cs
- NetSectionGroup.cs
- ChannelServices.cs
- ControlAdapter.cs
- WindowsEditBoxRange.cs
- ComboBoxAutomationPeer.cs
- MultipleViewPattern.cs
- ToolStripItemCollection.cs
- figurelengthconverter.cs
- FilteredAttributeCollection.cs
- TransformGroup.cs
- DuplicateWaitObjectException.cs
- HtmlTernaryTree.cs
- EventPropertyMap.cs
- PresentationSource.cs
- HttpListener.cs
- TextBox.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlElementAttributes.cs
- MenuBase.cs
- TabItemWrapperAutomationPeer.cs
- OdbcEnvironmentHandle.cs
- UniqueEventHelper.cs
- Int64KeyFrameCollection.cs
- QueryContinueDragEventArgs.cs
- ResizeBehavior.cs
- ItemsPresenter.cs