Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //------------- *** 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
- IBuiltInEvidence.cs
- TimeoutHelper.cs
- ProfileEventArgs.cs
- PingOptions.cs
- GlobalProxySelection.cs
- DispatcherOperation.cs
- StateInitializationDesigner.cs
- HttpListenerResponse.cs
- ParentQuery.cs
- PropertyGridDesigner.cs
- UnsafeNativeMethods.cs
- SetterBaseCollection.cs
- OracleParameterBinding.cs
- CheckableControlBaseAdapter.cs
- Menu.cs
- XmlTextAttribute.cs
- sqlinternaltransaction.cs
- FontResourceCache.cs
- DecimalAverageAggregationOperator.cs
- PolicyLevel.cs
- TypeInfo.cs
- ToolStripButton.cs
- ToolStripDesigner.cs
- RowToFieldTransformer.cs
- SqlStream.cs
- CompiledXpathExpr.cs
- HtmlInputReset.cs
- CodeAssignStatement.cs
- SqlProfileProvider.cs
- ThreadStaticAttribute.cs
- Rotation3DAnimation.cs
- Opcode.cs
- ScalarConstant.cs
- MDIControlStrip.cs
- odbcmetadatacollectionnames.cs
- LinqDataSourceEditData.cs
- codemethodreferenceexpression.cs
- _FixedSizeReader.cs
- HTMLTagNameToTypeMapper.cs
- Run.cs
- ScriptingProfileServiceSection.cs
- CalculatedColumn.cs
- TraceSection.cs
- AuthorizationSection.cs
- InboundActivityHelper.cs
- OledbConnectionStringbuilder.cs
- ActivityXRefConverter.cs
- ResourceDefaultValueAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- StatusBarItemAutomationPeer.cs
- ChangesetResponse.cs
- WindowPatternIdentifiers.cs
- ControlPaint.cs
- NetNamedPipeBindingCollectionElement.cs
- Line.cs
- EmptyStringExpandableObjectConverter.cs
- DispatchWrapper.cs
- UserNameSecurityTokenAuthenticator.cs
- TypeUsageBuilder.cs
- ResourceWriter.cs
- RunInstallerAttribute.cs
- ParallelTimeline.cs
- PopupEventArgs.cs
- EtwTrackingParticipant.cs
- XmlNamedNodeMap.cs
- XmlSerializationWriter.cs
- Floater.cs
- IList.cs
- ConfigXmlAttribute.cs
- ComNativeDescriptor.cs
- DelegateBodyWriter.cs
- ServicePointManagerElement.cs
- BitmapEffectRenderDataResource.cs
- Error.cs
- ChangeTracker.cs
- StorageEntitySetMapping.cs
- AppDomainAttributes.cs
- LocalizedNameDescriptionPair.cs
- DataGridViewCellValueEventArgs.cs
- WebPartConnectVerb.cs
- ClientData.cs
- Message.cs
- XmlSerializerNamespaces.cs
- ReflectPropertyDescriptor.cs
- CounterCreationDataCollection.cs
- RichTextBoxConstants.cs
- prompt.cs
- AuthorizationRuleCollection.cs
- SelectionProcessor.cs
- TemplatePagerField.cs
- OptimisticConcurrencyException.cs
- RadialGradientBrush.cs
- TextBreakpoint.cs
- PeerNearMe.cs
- XmlReturnWriter.cs
- RowCache.cs
- UdpDuplexChannel.cs
- ExternalDataExchangeService.cs
- InheritablePropertyChangeInfo.cs
- ApplicationInterop.cs