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
- TypeForwardedToAttribute.cs
- SafeHandles.cs
- VirtualPathProvider.cs
- GlobalizationAssembly.cs
- DocumentAutomationPeer.cs
- QilTernary.cs
- ManualResetEventSlim.cs
- ObjectComplexPropertyMapping.cs
- DragDrop.cs
- DbException.cs
- HttpHandlerActionCollection.cs
- ComponentDispatcher.cs
- PropertyDescriptorCollection.cs
- WindowsFont.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- NetTcpSecurity.cs
- Figure.cs
- SystemBrushes.cs
- GZipStream.cs
- ReferencedAssemblyResolver.cs
- WebUtility.cs
- IgnorePropertiesAttribute.cs
- URLIdentityPermission.cs
- RelationshipNavigation.cs
- WebBrowserPermission.cs
- ExpressionBuilderContext.cs
- AndCondition.cs
- ExpressionBindingCollection.cs
- CodeAttributeDeclaration.cs
- CompressedStack.cs
- StateItem.cs
- MailAddress.cs
- CellCreator.cs
- DrawingAttributes.cs
- Configuration.cs
- ObjectPropertyMapping.cs
- SQLSingle.cs
- AttributeCollection.cs
- XmlAttributeCollection.cs
- WebPartCollection.cs
- TokenBasedSet.cs
- RenamedEventArgs.cs
- CodeCatchClause.cs
- PerformanceCounterCategory.cs
- messageonlyhwndwrapper.cs
- GregorianCalendar.cs
- DbUpdateCommandTree.cs
- BulletDecorator.cs
- Mappings.cs
- DataGridCellClipboardEventArgs.cs
- RbTree.cs
- WorkerRequest.cs
- Point3DConverter.cs
- SqlStatistics.cs
- SchemaCreator.cs
- ManifestResourceInfo.cs
- ScriptReference.cs
- InertiaTranslationBehavior.cs
- MemberRelationshipService.cs
- Model3DGroup.cs
- HttpHostedTransportConfiguration.cs
- SignatureResourceHelper.cs
- ProtocolsSection.cs
- DataPointer.cs
- PeerNameResolver.cs
- GifBitmapEncoder.cs
- DeviceContext.cs
- SortedList.cs
- ContractNamespaceAttribute.cs
- HtmlWindow.cs
- TypeLoadException.cs
- TraceUtility.cs
- EventProviderTraceListener.cs
- RtfToXamlLexer.cs
- IImplicitResourceProvider.cs
- GeometryModel3D.cs
- UIHelper.cs
- CodeAccessSecurityEngine.cs
- UIElement.cs
- MultidimensionalArrayItemReference.cs
- ApplicationHost.cs
- FixedTextContainer.cs
- DataShape.cs
- MethodBuilderInstantiation.cs
- NonBatchDirectoryCompiler.cs
- TagPrefixAttribute.cs
- ProtocolsConfigurationHandler.cs
- BitStack.cs
- ServiceModelSecurityTokenRequirement.cs
- RemoteEndpointMessageProperty.cs
- ConfigurationProperty.cs
- SemaphoreFullException.cs
- Profiler.cs
- SchemaSetCompiler.cs
- ValueProviderWrapper.cs
- Enum.cs
- ColumnClickEvent.cs
- ProfileManager.cs
- MapPathBasedVirtualPathProvider.cs
- X509InitiatorCertificateServiceElement.cs