Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / IO / Packaging / PackagePartCollection.cs / 1305600 / PackagePartCollection.cs
//------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is a base abstract class for PackagePartCollection. This is a part of the // MMCF Packaging Layer // // History: // 01/03/2004: SarjanaS: Initial creation. [Stubs only] // 03/01/2004: SarjanaS: Implemented the functionality for all the members. //----------------------------------------------------------------------------- // Allow use of presharp warning numbers [6506] unknown to the compiler #pragma warning disable 1634, 1691 using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace System.IO.Packaging { ////// This class is used to get an enumerator for the Parts in a container. /// This is a part of the Packaging Layer APIs /// public class PackagePartCollection : IEnumerable{ //----------------------------------------------------- // // Public Constructors // //----------------------------------------------------- // None //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- // None //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods /// /// Returns an enumerator over all the Parts in the container /// ///IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } /// /// Returns an enumerator over all the Parts in the container /// ///IEnumerator IEnumerable .GetEnumerator() { return GetEnumerator(); } /// /// Returns an enumerator over all the Parts in the Container /// ///public IEnumerator GetEnumerator() { //PRESHARP:Warning 6506 Parameter to this public method must be validated: A null-dereference can occur here. //The Dictionary.Values property always returns a collection, even if empty. It never returns a null. #pragma warning disable 6506 return _partList.Values.GetEnumerator(); #pragma warning restore 6506 } #endregion Public Methods //----------------------------------------------------- // // Public Events // //------------------------------------------------------ // None //----------------------------------------------------- // // Internal Constructors // //----------------------------------------------------- #region Internal Constructor internal PackagePartCollection(SortedList partList) { Debug.Assert(partList != null, "partDictionary parameter cannot be null"); _partList = partList; } #endregion Internal Constructor //----------------------------------------------------- // // Internal Properties // //------------------------------------------------------ // None //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ // None //------------------------------------------------------ // // Internal Events // //----------------------------------------------------- // None //------------------------------------------------------ // // Private Methods // //----------------------------------------------------- // None //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Members private SortedList _partList; #endregion Private Members } } // 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
- ChannelManager.cs
- MimeParameter.cs
- Composition.cs
- NetworkStream.cs
- WindowsMenu.cs
- _SpnDictionary.cs
- XmlAutoDetectWriter.cs
- HotCommands.cs
- WindowsListBox.cs
- TextServicesContext.cs
- FamilyMap.cs
- PersonalizationStateInfo.cs
- WebEventCodes.cs
- StylusButton.cs
- RemoteCryptoDecryptRequest.cs
- SerializerWriterEventHandlers.cs
- HtmlElement.cs
- SharedUtils.cs
- WsiProfilesElementCollection.cs
- MetafileHeader.cs
- ComNativeDescriptor.cs
- CFStream.cs
- ErrorFormatterPage.cs
- EdgeModeValidation.cs
- EditorPartCollection.cs
- Message.cs
- DataSourceIDConverter.cs
- AuthorizationRule.cs
- StorageAssociationTypeMapping.cs
- WorkflowFileItem.cs
- SecuritySessionServerSettings.cs
- BasicHttpBindingElement.cs
- MetricEntry.cs
- DockingAttribute.cs
- StickyNoteContentControl.cs
- ProjectionPruner.cs
- HttpInputStream.cs
- AnnotationAdorner.cs
- DocumentManager.cs
- DCSafeHandle.cs
- RuleConditionDialog.Designer.cs
- TextElementEnumerator.cs
- XMLUtil.cs
- RoleGroupCollection.cs
- Int32CollectionValueSerializer.cs
- Context.cs
- ColorConvertedBitmap.cs
- InkCanvasFeedbackAdorner.cs
- COM2PropertyDescriptor.cs
- VersionedStreamOwner.cs
- ToolStripDropDownMenu.cs
- DataContext.cs
- DictionaryEntry.cs
- XmlILIndex.cs
- HostedTransportConfigurationManager.cs
- XmlElement.cs
- BamlResourceDeserializer.cs
- errorpatternmatcher.cs
- DiscoveryInnerClientManaged11.cs
- DesignTimeXamlWriter.cs
- XmlBaseWriter.cs
- PolyLineSegmentFigureLogic.cs
- ResolveMatchesCD1.cs
- WeakEventManager.cs
- SrgsToken.cs
- TreeView.cs
- AppearanceEditorPart.cs
- WorkflowQueuingService.cs
- _Semaphore.cs
- Knowncolors.cs
- OutputCacheSettingsSection.cs
- AsymmetricAlgorithm.cs
- GetWinFXPath.cs
- FloaterParaClient.cs
- AuthenticatedStream.cs
- FigureParagraph.cs
- StringSorter.cs
- IResourceProvider.cs
- AnnotationResourceCollection.cs
- StylusPointPropertyInfoDefaults.cs
- LocationSectionRecord.cs
- SuppressMessageAttribute.cs
- BitmapImage.cs
- SQLMembershipProvider.cs
- URLBuilder.cs
- SvcMapFile.cs
- StopRoutingHandler.cs
- XmlSerializerSection.cs
- DataGridRowHeader.cs
- LogicalCallContext.cs
- DataGridColumnCollection.cs
- SettingsSection.cs
- OleDbDataReader.cs
- Int32EqualityComparer.cs
- FixedSOMContainer.cs
- Hash.cs
- EndpointAddressProcessor.cs
- TableLayoutRowStyleCollection.cs
- DetectRunnableInstancesTask.cs
- Processor.cs