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
- Sentence.cs
- UserPreferenceChangingEventArgs.cs
- SecurityTokenSerializer.cs
- ProgressiveCrcCalculatingStream.cs
- TranslateTransform.cs
- FlatButtonAppearance.cs
- TextSelectionHighlightLayer.cs
- IPipelineRuntime.cs
- SourceInterpreter.cs
- ReadOnlyCollection.cs
- HttpMethodAttribute.cs
- ObjectSecurity.cs
- GeneralTransform3DGroup.cs
- PropertyPanel.cs
- SimpleTypesSurrogate.cs
- FixedSOMTextRun.cs
- GeometryGroup.cs
- IDispatchConstantAttribute.cs
- PropertySegmentSerializationProvider.cs
- ResolveNextArgumentWorkItem.cs
- Util.cs
- ItemsPresenter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- FormViewUpdatedEventArgs.cs
- Grant.cs
- ConstantExpression.cs
- PaintValueEventArgs.cs
- MenuBase.cs
- CodeDelegateCreateExpression.cs
- HasCopySemanticsAttribute.cs
- InternalMappingException.cs
- TextRunProperties.cs
- ObjectPropertyMapping.cs
- SystemColorTracker.cs
- X509Certificate2Collection.cs
- RegistrationServices.cs
- BlurBitmapEffect.cs
- MultiView.cs
- MemberAssignment.cs
- StaticTextPointer.cs
- LinqDataSourceSelectEventArgs.cs
- FusionWrap.cs
- DockingAttribute.cs
- DataTableMapping.cs
- StrongNameUtility.cs
- Menu.cs
- ForeignKeyFactory.cs
- TextTreeInsertElementUndoUnit.cs
- AllMembershipCondition.cs
- AccessibleObject.cs
- BinaryConverter.cs
- ProfilePropertySettings.cs
- IisTraceListener.cs
- PointIndependentAnimationStorage.cs
- DateTimeConstantAttribute.cs
- RawTextInputReport.cs
- TypeLibConverter.cs
- ReflectEventDescriptor.cs
- SafeSecurityHandles.cs
- TransformationRules.cs
- Executor.cs
- Model3D.cs
- Input.cs
- DBCSCodePageEncoding.cs
- PlatformCulture.cs
- SmiEventSink.cs
- RootBrowserWindowProxy.cs
- NativeMethodsCLR.cs
- PropertyGridEditorPart.cs
- QuaternionKeyFrameCollection.cs
- AutoResizedEvent.cs
- HttpWebRequestElement.cs
- DataGridViewElement.cs
- FilterQuery.cs
- OperatingSystem.cs
- ReadOnlyDictionary.cs
- MLangCodePageEncoding.cs
- SqlFormatter.cs
- UIAgentCrashedException.cs
- WebBrowserNavigatingEventHandler.cs
- DisplayInformation.cs
- ConvertEvent.cs
- VisualStyleRenderer.cs
- ResourcePool.cs
- Behavior.cs
- CompilerErrorCollection.cs
- updateconfighost.cs
- ParserStreamGeometryContext.cs
- XPathNavigatorReader.cs
- CriticalHandle.cs
- FileDialog.cs
- ComponentChangingEvent.cs
- GeneralTransformCollection.cs
- XmlNullResolver.cs
- smtpconnection.cs
- CatalogPartCollection.cs
- InteropBitmapSource.cs
- MappingItemCollection.cs
- GlyphShapingProperties.cs
- MenuItemBinding.cs