Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Xml / System / Xml / XPath / Internal / ClonableStack.cs / 1 / ClonableStack.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal sealed class ClonableStack: System.Collections.Generic.List { public ClonableStack() {} public ClonableStack(int capacity) : base(capacity) {} private ClonableStack(System.Collections.Generic.IEnumerable collection) : base(collection) { } public void Push(T value) { base.Add(value); } public T Pop() { int last = base.Count - 1; T result = base[last]; base.RemoveAt(last); return result; } public T Peek() { return base[base.Count - 1]; } public ClonableStack Clone() { return new ClonableStack (this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; internal sealed class ClonableStack: System.Collections.Generic.List { public ClonableStack() {} public ClonableStack(int capacity) : base(capacity) {} private ClonableStack(System.Collections.Generic.IEnumerable collection) : base(collection) { } public void Push(T value) { base.Add(value); } public T Pop() { int last = base.Count - 1; T result = base[last]; base.RemoveAt(last); return result; } public T Peek() { return base[base.Count - 1]; } public ClonableStack Clone() { return new ClonableStack (this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XslTransform.cs
- SqlConnectionHelper.cs
- _ShellExpression.cs
- AsyncOperation.cs
- Bits.cs
- HttpListenerContext.cs
- PermissionSet.cs
- Message.cs
- SourceFileBuildProvider.cs
- DataGridComponentEditor.cs
- ScrollViewerAutomationPeer.cs
- SignalGate.cs
- BackgroundFormatInfo.cs
- RelatedEnd.cs
- SendAgentStatusRequest.cs
- SystemIPv4InterfaceProperties.cs
- HttpModuleAction.cs
- ServiceHostFactory.cs
- iisPickupDirectory.cs
- MissingManifestResourceException.cs
- Trigger.cs
- WebBrowserNavigatedEventHandler.cs
- Literal.cs
- SafeIUnknown.cs
- EraserBehavior.cs
- DrawingVisual.cs
- FileChangesMonitor.cs
- StylusPointProperty.cs
- ListItem.cs
- XamlGridLengthSerializer.cs
- InputReport.cs
- IImplicitResourceProvider.cs
- ToolboxDataAttribute.cs
- ZoneButton.cs
- MetadataFile.cs
- InputGestureCollection.cs
- GACIdentityPermission.cs
- SqlCharStream.cs
- PrintDialog.cs
- XmlILAnnotation.cs
- DocumentReference.cs
- UInt64Converter.cs
- UnknownWrapper.cs
- RequiredAttributeAttribute.cs
- TreeViewHitTestInfo.cs
- Typography.cs
- PathBox.cs
- ComplexLine.cs
- OleDbSchemaGuid.cs
- DragDrop.cs
- AttachedPropertyBrowsableAttribute.cs
- PersistNameAttribute.cs
- ClientEventManager.cs
- SafeCertificateStore.cs
- Char.cs
- SimpleBitVector32.cs
- StorageSetMapping.cs
- DataGridViewCellStyleConverter.cs
- QuadTree.cs
- OdbcConnectionFactory.cs
- StatusBarDrawItemEvent.cs
- SqlDataReader.cs
- SortedDictionary.cs
- URLMembershipCondition.cs
- NotifyIcon.cs
- ConditionalAttribute.cs
- userdatakeys.cs
- PeerCredential.cs
- HandleRef.cs
- MatrixCamera.cs
- HitTestFilterBehavior.cs
- Pointer.cs
- XhtmlConformanceSection.cs
- SiteMapDataSource.cs
- IdentityElement.cs
- DecimalConstantAttribute.cs
- ClassValidator.cs
- OrderedEnumerableRowCollection.cs
- MatrixAnimationUsingPath.cs
- CellQuery.cs
- ZipArchive.cs
- MenuItemCollection.cs
- Point.cs
- SmtpAuthenticationManager.cs
- ListItemsCollectionEditor.cs
- PrePrepareMethodAttribute.cs
- FamilyTypeface.cs
- TypeUnloadedException.cs
- TableProviderWrapper.cs
- TextEffectCollection.cs
- X509ServiceCertificateAuthenticationElement.cs
- SyndicationDeserializer.cs
- MultiView.cs
- SqlHelper.cs
- HtmlEmptyTagControlBuilder.cs
- PropVariant.cs
- ImageAutomationPeer.cs
- BlurEffect.cs
- QueryCacheKey.cs
- WpfGeneratedKnownProperties.cs