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
- Base64Stream.cs
- ReadOnlyDataSourceView.cs
- XmlHierarchicalDataSourceView.cs
- CommittableTransaction.cs
- WindowPattern.cs
- RawKeyboardInputReport.cs
- Viewport3DAutomationPeer.cs
- ListViewSortEventArgs.cs
- ServiceOperationParameter.cs
- ScrollViewerAutomationPeer.cs
- XmlSubtreeReader.cs
- DataPointer.cs
- XsltArgumentList.cs
- AppSettingsExpressionEditor.cs
- CodeParameterDeclarationExpression.cs
- Message.cs
- PersonalizationStateInfo.cs
- PersonalizationDictionary.cs
- ScriptResourceHandler.cs
- Constants.cs
- ScriptModule.cs
- View.cs
- DataGridViewColumnStateChangedEventArgs.cs
- Operand.cs
- LoginNameDesigner.cs
- InlineCollection.cs
- ControlPropertyNameConverter.cs
- _NativeSSPI.cs
- Util.cs
- NamedPipeTransportSecurity.cs
- ZoneIdentityPermission.cs
- DictionaryEntry.cs
- BaseResourcesBuildProvider.cs
- activationcontext.cs
- DataGridViewCellConverter.cs
- AddingNewEventArgs.cs
- FieldToken.cs
- PerformanceCounterPermissionAttribute.cs
- ProcessHostConfigUtils.cs
- RenderingEventArgs.cs
- DesignTimeHTMLTextWriter.cs
- BrowserDefinition.cs
- RequestValidator.cs
- WebDisplayNameAttribute.cs
- ParallelTimeline.cs
- SmtpLoginAuthenticationModule.cs
- Options.cs
- IPHostEntry.cs
- HttpException.cs
- Trigger.cs
- ControlPaint.cs
- FloaterBaseParagraph.cs
- KeyFrames.cs
- Int16Converter.cs
- ProcessThreadCollection.cs
- ResourceManager.cs
- QilTypeChecker.cs
- _SslState.cs
- ProxyGenerationError.cs
- EditingCoordinator.cs
- SkipStoryboardToFill.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- AssociationSet.cs
- AssemblyResourceLoader.cs
- EntityCommandCompilationException.cs
- EntityClientCacheEntry.cs
- EnvironmentPermission.cs
- CheckoutException.cs
- HtmlInputSubmit.cs
- AuthenticatingEventArgs.cs
- EntityContainerRelationshipSetEnd.cs
- EncoderNLS.cs
- DataProtectionSecurityStateEncoder.cs
- ToolZone.cs
- Debug.cs
- AssemblyBuilderData.cs
- XmlLanguage.cs
- StringUtil.cs
- WindowsSysHeader.cs
- BrowserInteropHelper.cs
- UserUseLicenseDictionaryLoader.cs
- Internal.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DataRowCollection.cs
- CompensatableSequenceActivity.cs
- XmlPropertyBag.cs
- CustomTypeDescriptor.cs
- ReadOnlyDataSource.cs
- ConfigXmlElement.cs
- CacheMode.cs
- StringWriter.cs
- ApplicationInfo.cs
- TextParagraphCache.cs
- OutOfProcStateClientManager.cs
- DisplayInformation.cs
- HexParser.cs
- httpstaticobjectscollection.cs
- ToolStripLabel.cs
- PartialToken.cs
- Psha1DerivedKeyGeneratorHelper.cs